KazV2/dockers/web/docker-compose.yml

30 lines
591 B
YAML

services:
web:
image: nginx
container_name: ${webServName}
restart: ${restartPolicy}
# ports:
# - 8080:80
extends:
file: autoconfig.yml
service: autoconfig
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}`) || Host(`www.${domain}`)"
volumes:
html:
config:
networks:
webNet:
external: true
name: webNet