28 lines
529 B
YAML
28 lines
529 B
YAML
version: '3'
|
|
services:
|
|
web:
|
|
image: nginx
|
|
container_name: ${webServName}
|
|
restart: ${restartPolicy}
|
|
# ports:
|
|
# - 8080:80
|
|
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
|