KazV2/dockers/web/docker-compose.yml

30 lines
591 B
YAML
Raw Normal View History

2024-06-03 18:43:35 +02:00
services:
web:
image: nginx
container_name: ${webServName}
restart: ${restartPolicy}
# ports:
# - 8080:80
2024-07-08 20:51:54 +02:00
extends:
file: autoconfig.yml
service: autoconfig
2024-06-03 18:43:35 +02:00
networks:
- webNet
volumes:
- html:/usr/share/nginx/html/
- config:/etc/nginx/
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
labels:
- "traefik.enable=true"
2024-08-22 07:39:28 +02:00
- "traefik.http.routers.web.rule=Host(`${domain}`) || Host(`www.${domain}`)"
2024-06-03 18:43:35 +02:00
volumes:
html:
config:
networks:
webNet:
external: true
name: webNet