Runs this API on port 80

# Runs on docker single daemon (no swarm)
# Make sure the mount volumes match correctly
# This needs the commited nginx.conf (or your own adapted version)
This commit is contained in:
Amir Moradi 2022-11-18 11:05:12 +01:00 committed by GitHub
parent ac27e0ba3d
commit ba6bd38431
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,14 @@
# Runs this API on port 80
# Runs on docker single daemon (no swarm)
# Make sure the mount volumes match correctly
# This needs the commited nginx.conf (or your own adapted version)
version: '3.7'
services:
web:
image: trafex/php-nginx
ports:
- "80:8080"
volumes:
- ".:/var/www/html:ro"
- "./nginx.conf:/etc/nginx/nginx.conf"