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