Skip to content

Commit 405a4a0

Browse files
committed
use container name as router name for Traefik
1 parent 054eb6a commit 405a4a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ services:
2929
- APACHE_DOCUMENT_ROOT=/var/www/public
3030
labels:
3131
- "traefik.enable=true"
32-
- "traefik.http.routers.app.rule=Host(`mvc5playground`)"
33-
- "traefik.http.routers.app.tls=true"
32+
- "traefik.http.routers.mvc5playground.entrypoints=websecure"
33+
- "traefik.http.routers.mvc5playground.rule=Host(`mvc5playground`)"
34+
- "traefik.http.routers.mvc5playground.tls=true"
3435
networks:
3536
- public
3637
working_dir: /var/www

0 commit comments

Comments
 (0)