first commit
This commit is contained in:
27
dockers/web/docker-compose.yml
Normal file
27
dockers/web/docker-compose.yml
Normal file
@ -0,0 +1,27 @@
|
||||
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
|
Reference in New Issue
Block a user