Update whoami router name in docker-compose.example.yml to make it easier to understand (#317)

Any router name works as long as it is consistently applied. The `nginx` name for the `whoami` container route can be a bit confusing for new users. Aligning the container and route name is similar to how Traefik generates dynamic routes, makes it easier to read the compose file and logs, and can generally help reduce bugs when extending the example.
This commit is contained in:
Hack It U.P.
2025-08-19 21:01:33 +12:00
committed by GitHub
parent b44cef2865
commit cc3ce93100

View File

@@ -13,8 +13,8 @@ services:
image: traefik/whoami:latest image: traefik/whoami:latest
labels: labels:
traefik.enable: true traefik.enable: true
traefik.http.routers.nginx.rule: Host(`whoami.example.com`) traefik.http.routers.whoami.rule: Host(`whoami.example.com`)
traefik.http.routers.nginx.middlewares: tinyauth traefik.http.routers.whoami.middlewares: tinyauth
tinyauth: tinyauth:
container_name: tinyauth container_name: tinyauth