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

Comments

@WTFKr0
Copy link
Contributor

@WTFKr0 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 ?

@danieladams456

This comment has been minimized.

Copy link

@danieladams456 danieladams456 commented May 2, 2018

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

This comment has been minimized.

Copy link

@cerw 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 of 2 tasks complete
@traefiker traefiker added this to the 2.0 milestone Jun 21, 2019
@traefiker traefiker closed this Jun 21, 2019
@traefiker

This comment has been minimized.

Copy link

@traefiker traefiker commented Jun 21, 2019

Closed by #4965.

@containous containous 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.
Projects
None yet
6 participants
You can’t perform that action at this time.