KazV2/dockers/web/docker-compose.yml

31 lines
595 B
YAML
Raw Normal View History

2024-06-03 18:43:35 +02:00
version: '3'
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"
- "traefik.http.routers.web.rule=Host(`${domain}`,`www.${domain}`)"
volumes:
html:
config:
networks:
webNet:
external: true
name: webNet