docker/nginxs/docs/docker-compose.yml

24 lines
474 B
YAML

version: "3.8"
services:
web:
build: .
image: my_nginx:1.21.4
networks:
- proxy
expose:
- "80"
restart: unless-stopped
volumes:
- ${DATA_PATH}/html/:/usr/share/nginx/html:ro
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.docs.rule=Host(`${CN}`)"
- "co.elastic.logs/module=nginx"
networks:
proxy:
external: true