From d3936363d053092910e6ed891a34744e62deaca1 Mon Sep 17 00:00:00 2001 From: Kartikey Tanna Date: Tue, 11 Apr 2023 10:17:38 +0530 Subject: [PATCH] Explained the latest modifications of Traefik container labels --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 941a8885..4ae5172c 100644 --- a/README.md +++ b/README.md @@ -306,8 +306,9 @@ You can specialize the default Traefik rules by setting labels on the containers ```yaml labels: - traefik.http.routers.hey.rule: Host(`app.hey.com`) + traefik.http.routers.hey-web.rule: Host(`app.hey.com`) ``` +Traefik rules are in the "service-role-destination" format. The default role will be `web` if no rule is specified. If the destination is not specified, it is not included. To give an example, the above rule would become "traefik.http.routers.hey-web.rule" if it was for the "staging" destination. Note: The backticks are needed to ensure the rule is passed in correctly and not treated as command substitution by Bash!