Search code examples
docker-swarmtraefik

Use Traefik to apply basic auth to all containers except one


What's the best way to require basic auth for all containers except a select few?

Similar to this question that's still waiting for an answer.


Solution

  • You cannot do that, you need to add basic auth on each frontend.

    https://docs.traefik.io/configuration/backends/docker/#on-containers