Hello,
I have a container running (e.g., service
) and labels defined in the docker-compose file. I wanted to run a clone of this under another subdomain (e.g., service-prod
). When I do this, accessing service
actually goes to service-prod
. In the dashboard everything is looking fine. Is this a bug or what could cause this?
Definition of docker provider:
providers:
docker:
exposedByDefault: false
Labels of service
:
labels:
- "traefik.http.middlewares.add-auth.basicauth.users=<snip>"
- "traefik.enable=true"
- "traefik.http.routers.foo.rule=Host(`foo-dev.example.com`)"
- "traefik.http.routers.foo.tls=true"
- "traefik.http.routers.foo.tls.options=mintls12@file"
- "traefik.http.routers.foo.tls.certresolver=letsencrypt"
- "traefik.http.routers.foo.middlewares=add-auth@docker"
- "traefik.http.services.foo.loadbalancer.server.port=8000"
Labels of service-prod
:
labels:
- "traefik.http.middlewares.add-auth-prod.basicauth.users=<snip>"
- "traefik.enable=true"
- "traefik.http.routers.foo-prod.rule=Host(`foo.example.com`)"
- "traefik.http.routers.foo-prod.tls=true"
- "traefik.http.routers.foo-prod.tls.options=mintls12@file"
- "traefik.http.routers.foo-prod.tls.certresolver=letsencrypt"
- "traefik.http.routers.foo-prod.middlewares=add-auth-prod@docker"
- "traefik.http.services.foo-prod.loadbalancer.server.port=80"