31 lines
595 B
YAML
31 lines
595 B
YAML
version: '3'
|
|
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}`,`www.${domain}`)"
|
|
|
|
volumes:
|
|
html:
|
|
config:
|
|
|
|
networks:
|
|
webNet:
|
|
external: true
|
|
name: webNet
|