Feat: Added priority, traefik.path.strip, traefik.path.prefix and traefik.path.prefix.strip service labels to autoconfigure traefik
This commit is contained in:
parent
c57bd5c326
commit
00ec226f25
@ -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.
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user