Feat: Added priority, traefik.path.strip, traefik.path.prefix and traefik.path.prefix.strip service labels to autoconfigure traefik

This commit is contained in:
Raul Sanchez 2017-01-07 01:29:08 +01:00
parent c57bd5c326
commit 00ec226f25
2 changed files with 19 additions and 11 deletions

View File

@ -33,9 +33,16 @@ Traefik labels has to be added in your services, in order to get included in tra
- false: the service will not be published - false: the service will not be published
- traefik.alias = < alias > # Alternate names to route rule. Multiple values separated by ",". WARNING: You could have collisions BE CAREFULL - traefik.alias = < alias > # Alternate names to route rule. Multiple values separated by ",". WARNING: You could have collisions BE CAREFULL
- traefik.domain = < domain > # Domain names to route rule. Multiple values separated by "," - traefik.domain = < domain > # Domain names to route rule. Multiple values separated by ","
- traefik.path = < path > # Path to route rule. Multiple paths separated by ","
- traefik.port = < port > # Port to expose throught traefik - traefik.port = < port > # Port to expose throught traefik
- traefik.acme = < true | false > # Enable/disable ACME traefik feature - traefik.acme = < true | false > # Enable/disable ACME traefik feature
- traefik.path = < path > # Path rule. Multiple values separated by ","
- traefik.path.strip = < path > # Path strip rule. Multiple values separated by ","
- traefik.path.prefix = < path > # Path prefix rule. Multiple values separated by ","
- traefik.path.prefix.strip = < path > # Path prefix strip rule. Multiple values separated by ","
Details for configuring the traefik rules can be found at: https://docs.traefik.io/basics/#frontends
WARNING: Only services with healthy state are added to traefik, so health checks are mandatory.
### Usage: ### Usage:
@ -61,3 +68,4 @@ Traefik labels has to be added in your services, in order to get included in tra
- https://${traefik.alias}.${traefik.domain}:${https_port} - https://${traefik.alias}.${traefik.domain}:${https_port}
Note: To access the services, you need to create A or CNAMES dns entries for every one. Note: To access the services, you need to create A or CNAMES dns entries for every one.

View File

@ -33,7 +33,7 @@ traefik-conf:
io.rancher.container.start_once: 'true' io.rancher.container.start_once: 'true'
tty: true tty: true
log_opt: {} log_opt: {}
image: rawmind/rancher-traefik:0.3.4-14 image: rawmind/rancher-traefik:0.3.4-15
net: none net: none
volumes: volumes:
- /opt/tools - /opt/tools