docs(traefik-labels): Improve docs for traefik labels formatting

This commit is contained in:
Paul Gabriel
2023-02-18 00:25:30 +01:00
parent 5c93642f2a
commit d484cfcc31

View File

@@ -185,10 +185,10 @@ You can specialize the default Traefik rules by setting labels on the containers
``` ```
labels: 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. 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. See https://doc.traefik.io/traefik/routing/routers/#rule for a full list of available routing rules.