File tree Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Expand file tree Collapse file tree 2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,9 @@ services:
1616 image : phpmyadmin/phpmyadmin
1717 labels :
1818 traefik.enable : true
19- traefik.http.port : 80
20- traefik.http.frontend.rule : " Host: pma.localhost.tv"
19+ traefik.http.services.pma.loadbalancer.server.port : 80
20+ traefik.http.routers.pma.rule : " Host(`pma.localhost.tv`)"
21+ traefik.http.routers.pma.entrypoints : web
2122 environment :
2223 PMA_HOST : db
2324 PMA_PORT : 3306
@@ -41,9 +42,8 @@ services:
4142 image : djfarrelly/maildev
4243 labels :
4344 traefik.enable : true
44- traefik.http.port : 80
45- traefik.http.frontend.rule : " Host: maildev.localhost.tv"
46- traefik.http.frontend.frontend.passHostHeader : true
45+ traefik.http.services.maildev.loadbalancer.server.port : 80
46+ traefik.http.routers.maildev.rule : " Host(`maildev.localhost.tv`)"
4747 ports :
4848 - 80
4949 - 25
@@ -53,14 +53,19 @@ services:
5353 - maildev.localhost.tv
5454
5555 traefik :
56- image : traefik:v1.7
57- command : -c /dev/null --api --docker --docker.domain=.localhost.tv --logLevel=DEBUG
56+ image : traefik:v2.3
57+ command :
58+ # - "--log.level=DEBUG"
59+ - " --api.insecure=true"
60+ - " --providers.docker=true"
61+ - " --providers.docker.exposedbydefault=false"
62+ - " --entrypoints.web.address=:80"
5863 ports :
5964 - 80:80
6065 - 443:443
6166 - 8080:8080
6267 volumes :
63- - /var/run/docker.sock:/var/run/docker.sock
68+ - /var/run/docker.sock:/var/run/docker.sock:ro
6469 networks :
6570 - sfdemo
6671
Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ services:
44 image : nginx
55 labels :
66 traefik.enable : true
7- traefik.http.port : 80
8- traefik.http.frontend.rule : " Host: demo.localhost.tv"
7+ traefik.docker.network : sfdemo
8+ traefik.http.services.www.loadbalancer.server.port : 80
9+ traefik.http.routers.www.rule : " Host(`demo.localhost.tv`)"
10+ traefik.http.routers.www.entrypoints : web
911 ports :
1012 - 80
1113 - 443
You can’t perform that action at this time.
0 commit comments