-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
34 lines (32 loc) · 1.01 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
services:
traefik:
image: traefik:v2.7
command:
- --log=true
- --log.level=DEBUG
- --api.dashboard=true
- --entrypoints.http.address=:80
- --providers.docker=true
- --providers.docker.exposedByDefault=false
ports:
- 127.0.0.1:80:80
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /etc/localtime:/etc/localtime:ro
restart: always
labels:
traefik.enable: "true"
traefik.http.routers.traefik.entrypoints: http
traefik.http.routers.traefik.service: api@internal
traefik.http.routers.traefik.rule: HostRegexp(`traefik.127.0.0.1.nip.io`)
www:
image: nginx:stable
volumes:
- ./www/pages:/usr/share/nginx/html
- ./www/default.conf:/etc/nginx/conf.d/default.conf
- /etc/localtime:/etc/localtime:ro
labels:
traefik.enable: "true"
traefik.http.services.www.loadbalancer.server.port: 80
traefik.http.routers.www.entrypoints: http
traefik.http.routers.www.rule: HostRegexp(`www.127.0.0.1.nip.io`)