More generic traefik constraints "tags" for docker provider #895
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
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 containerFor 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 projectMaybe 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 ?
The text was updated successfully, but these errors were encountered: