docker/nginxs/docs/docker-compose.yml

25 lines
532 B
YAML
Raw Normal View History

2022-01-17 10:01:48 +01:00
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.entrypoints=websecure"
- "traefik.http.routers.docs.rule=Host(`${CN}`)"
2022-01-17 10:01:48 +01:00
- "co.elastic.logs/module=nginx"
networks:
proxy:
external: true