docker-compose für nginx webserver hinzugefügt

This commit is contained in:
bmen 2019-09-30 08:09:55 +00:00
parent b63878f0ce
commit 0a435a403f
1 changed files with 11 additions and 0 deletions

11
docker-compose.yml Normal file
View File

@ -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;'"