1
0
Fork 0

feat(constraints): Supports constraints for docker backend

This commit is contained in:
Samuel BERTHE 2016-06-06 21:59:58 +02:00
parent 01ffad2e6e
commit f7224ff403
3 changed files with 25 additions and 4 deletions

View file

@ -203,6 +203,7 @@ Træfɪk filters services according to service attributes/tags set in your confi
Supported backends:
- Docker
- Consul Catalog
Supported filters:
@ -574,6 +575,14 @@ watch = true
# cert = "/etc/ssl/docker.crt"
# key = "/etc/ssl/docker.key"
# insecureskipverify = true
# Constraint on Docker tags
#
# Optional
#
# constraints = ["tag==api", "tag==he*ld"]
# Matching with containers having the label "traefik.tags" set to "api,helloworld"
# ex: $ docker run -d -P --label traefik.tags=api,helloworld emilevauge/whoami
```
Labels can be used on containers to override default behaviour: