From cc3ce9310017d1f871ea5df2b97ba49fb39ee385 Mon Sep 17 00:00:00 2001 From: "Hack It U.P." Date: Tue, 19 Aug 2025 21:01:33 +1200 Subject: [PATCH] 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. --- docker-compose.example.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index a76cb98..4b38707 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -13,8 +13,8 @@ services: image: traefik/whoami:latest labels: traefik.enable: true - traefik.http.routers.nginx.rule: Host(`whoami.example.com`) - traefik.http.routers.nginx.middlewares: tinyauth + traefik.http.routers.whoami.rule: Host(`whoami.example.com`) + traefik.http.routers.whoami.middlewares: tinyauth tinyauth: container_name: tinyauth