From d484cfcc316ddd0f15de54ea9ad0d2176bd89e94 Mon Sep 17 00:00:00 2001 From: Paul Gabriel Date: Sat, 18 Feb 2023 00:25:30 +0100 Subject: [PATCH] docs(traefik-labels): Improve docs for traefik labels formatting --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6a8bc124..e3878998 100644 --- a/README.md +++ b/README.md @@ -185,10 +185,10 @@ You can specialize the default Traefik rules by setting labels on the containers ``` labels: - traefik.http.routers.hey.rule: '''Host(`app.hey.com`)''' + traefik.http.routers.hey.rule: Host(\`app.hey.com\`) ``` -Note: The extra quotes are needed to ensure the rule is passed in correctly! +Note: The escaped backticks are needed to ensure the rule is passed in correctly and not treated as command substitution by Bash! This allows you to run multiple applications on the same server sharing the same Traefik instance and port. See https://doc.traefik.io/traefik/routing/routers/#rule for a full list of available routing rules.