Merge pull request #214 from tannakartikey/traefik_lables_readme_example_fix

Traefik label example typo fix
This commit is contained in:
David Heinemeier Hansson
2023-04-12 15:58:08 +02:00
committed by GitHub

View File

@@ -536,11 +536,11 @@ Add labels to Traefik Docker container.
```yaml ```yaml
traefik: traefik:
lables: lables:
- traefik.enable: true traefik.enable: true
- traefik.http.routers.dashboard.rule: Host(`traefik.example.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`)) traefik.http.routers.dashboard.rule: Host(`traefik.example.com`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))
- traefik.http.routers.dashboard.service: api@internal traefik.http.routers.dashboard.service: api@internal
- traefik.http.routers.dashboard.middlewares: auth traefik.http.routers.dashboard.middlewares: auth
- traefik.http.middlewares.auth.basicauth.users: test:$2y$05$H2o72tMaO.TwY1wNQUV1K.fhjRgLHRDWohFvUZOJHBEtUXNKrqUKi # test:password traefik.http.middlewares.auth.basicauth.users: test:$2y$05$H2o72tMaO.TwY1wNQUV1K.fhjRgLHRDWohFvUZOJHBEtUXNKrqUKi # test:password
``` ```
This labels Traefik container with `--label traefik.http.routers.dashboard.middlewares=\"auth\"` and so on. This labels Traefik container with `--label traefik.http.routers.dashboard.middlewares=\"auth\"` and so on.