Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Docker compose labels for traefik applies middleware to all routers #2196

Open
michael-at-boost opened this issue May 13, 2024 · 1 comment
Assignees

Comments

@michael-at-boost
Copy link

Description

I think this counts as a bug but it could be a feature request.
Applying basic auth in docker compose to a service like Minio applies the auth to all routers.

e.g. - 'traefik.http.middlewares.custom-auth.basicauth.users=test:$2y$10$8C2MxnUPIv3jgexD...etc'

You can't manually target a router in labels because the original line will exist and cause a dupe
e.g. - 'traefik.http.routers.https-0-xab0k4w-minio.middlewares=gzip,custom-auth'
^^ this prevents the whole service from loading.

It's an issue because you might want auth (or ip whitelist) on the console router but not on the API router.

Minimal Reproduction (if possible, example repository)

Vanilla Coolify (v4.0.0-beta.277)
Vanilla Minio from services

Exception or Error

No response

Version

v4.0.0-beta.277

@marcomaiermm
Copy link

+1

@andrasbacsai andrasbacsai self-assigned this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants