From ba6bd384314a3071aba41d2d2bfdc30016780482 Mon Sep 17 00:00:00 2001 From: Amir Moradi Date: Fri, 18 Nov 2022 11:05:12 +0100 Subject: [PATCH] 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) --- www/docker-compose_simple-single.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 www/docker-compose_simple-single.yml diff --git a/www/docker-compose_simple-single.yml b/www/docker-compose_simple-single.yml new file mode 100644 index 0000000..20f830a --- /dev/null +++ b/www/docker-compose_simple-single.yml @@ -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"