times_new_nginx/docker-compose.yaml

25 lines
688 B
YAML

include:
- path:
- compose_extends/network.include.yaml
services:
reverse:
extends:
file: compose_extends/docker-compose.base.yaml
service: reverse
extra_hosts:
- "host.docker.internal=host-gateway"
volumes:
- "./nginx.conf:/etc/nginx/nginx.conf:ro"
- "./locations:/etc/nginx/locations:ro"
- "./configuration:/etc/nginx/configuration:ro"
- "./sites-enabled:/etc/nginx/sites-enabled:ro"
- "./error-pages:/etc/nginx/error-pages:ro"
- "./resources:/var/www/html/resources:ro"
- "./ssl:/etc/nginx/ssl:ro"
- "./logs:/var/log/nginx/"
ports:
- 80:80
- 443:443
networks:
- services