oho/docker-compose.yml

11 lines
344 B
YAML

web:
image: nginx
volumes:
- ./mysite.template:/etc/nginx/conf.d/mysite.template
- ./:/var/www/html
ports:
- "8090:80"
environment:
- NGINX_HOST=oho.zeitpunkt-agentur.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;'"