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

More generic traefik constraints "tags" for docker provider #895

Closed
WTFKr0 opened this issue Nov 24, 2016 · 3 comments
Closed

More generic traefik constraints "tags" for docker provider #895

WTFKr0 opened this issue Nov 24, 2016 · 3 comments
Labels
area/provider/docker kind/enhancement a new or improved feature. priority/P2 need to be fixed in the future status/5-frozen-due-to-age
Milestone

Comments

@WTFKr0
Copy link
Contributor

WTFKr0 commented Nov 24, 2016

Hi,

I think it would be great if the --constraints parameter become more generic.
Some of labels are automatically placed by docker or compose (and maybe by other orchestrator), and traefik could use them to filter

Today we place a constraint (--constraints='tag==eu')
And then a label traefik.tag=eu is placed on container

For example, if my container already have a label like "com.docker.compose.project": "proj1", I would like to tell traefik instance to manage only this project

Maybe the --contraints parameter can be more generic by letting user decide which label to check, like :
--constraints='com.docker.compose.project=="proj1"'
So the old way can be done with :
--constraints='traefik.tags=="eu"'

WDYT ?

@emilevauge emilevauge added kind/enhancement a new or improved feature. priority/P2 need to be fixed in the future level/beginner labels Dec 2, 2016
@danieladams456
Copy link
Contributor

This would be good for filtering by Docker network. We have two traefik instances for different dev teams on different docker networks. It would be nice to not have them discovering each other's services and getting 504s when the wrong instance was used. With a filter it would be a more correct (and faster) 404.

@cerw
Copy link

cerw commented Feb 13, 2019

Has this been resolved? How do you manage multiple instances on one docker server or in separate stacks?

@ldez ldez mentioned this issue Jun 17, 2019
2 tasks
@traefiker traefiker added this to the 2.0 milestone Jun 21, 2019
@traefiker
Copy link
Contributor

Closed by #4965.

@traefik traefik locked and limited conversation to collaborators Sep 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/provider/docker kind/enhancement a new or improved feature. priority/P2 need to be fixed in the future status/5-frozen-due-to-age
Projects
None yet
Development

No branches or pull requests

6 participants