feat(constraints): Supports constraints for docker backend
This commit is contained in:
parent
01ffad2e6e
commit
f7224ff403
3 changed files with 25 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue