From 0a435a403f8e7d99b5faaaceed8aa73979ef5c36 Mon Sep 17 00:00:00 2001 From: bmen Date: Mon, 30 Sep 2019 08:09:55 +0000 Subject: [PATCH] =?UTF-8?q?docker-compose=20f=C3=BCr=20nginx=20webserver?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..7bcb58f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +web: + image: nginx + volumes: + - ./nginx.template:/etc/nginx/conf.d/mysite.template + - ./:/var/www/html + ports: + - "8090:80" + environment: + - NGINX_HOST=oho.die-dezentrale.org + - NGINX_PORT=80 + command: /bin/bash -c "envsubst < /etc/nginx/conf.d/mysite.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'" \ No newline at end of file