Update traefik to v1.1.2 and some bugfixes in v1.1.1

This commit is contained in:
Raul Sanchez
2016-12-21 05:25:43 +01:00
parent e6d3d6e3f3
commit 97453a4917
7 changed files with 220 additions and 3 deletions
+7
View File
@@ -18,6 +18,7 @@
- acme_enable = false # Enable/Disable acme traefik support.
- acme_email = "test@traefik.io" # acme user email
- acme_ondemand = true # acme ondemand parameter.
- acme_onhostrule = true # acme onHostRule parameter.
- ssl_key # Paste your ssl key. *Required if you enable https
- ssl_crt # Paste your ssl crt. *Required if you enable https
- refresh_interval = 10s # Interval to refresh traefik rules.toml from rancher-metadata.
@@ -30,6 +31,7 @@ Traefik labels has to be added in your services, in order to get included in tra
- true: the service will be published as *service_name.stack_name.traefik_domain*
- stack: the service will be published as *stack_name.traefik_domain*. WARNING: You could have collisions inside services within your stack
- 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.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
@@ -53,4 +55,9 @@ Traefik labels has to be added in your services, in order to get included in tra
- http://${stack_name}.${traefik.domain}:${http_port}
- https://${stack_name}.${traefik.domain}:${https_port}
If you set traefik.alias you service could also be acceses through
- http://${traefik.alias}.${traefik.domain}:${http_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.
+3 -2
View File
@@ -12,7 +12,7 @@ traefik:
io.rancher.container.hostname_override: container_name
tty: true
log_opt: {}
image: rawmind/alpine-traefik:1.1.1-1
image: rawmind/alpine-traefik:1.1.1-2
environment:
- CONF_INTERVAL=${refresh_interval}
- TRAEFIK_HTTP_PORT=${http_port}
@@ -21,6 +21,7 @@ traefik:
- TRAEFIK_ACME_ENABLE=${acme_enable}
- TRAEFIK_ACME_EMAIL=${acme_email}
- TRAEFIK_ACME_ONDEMAND=${acme_ondemand}
- TRAEFIK_ACME_ONHOSTRULE=${acme_onhostrule}
volumes_from:
- traefik-conf
traefik-conf:
@@ -32,7 +33,7 @@ traefik-conf:
io.rancher.container.start_once: 'true'
tty: true
log_opt: {}
image: rawmind/rancher-traefik:0.3.4-10
image: rawmind/rancher-traefik:0.3.4-14
net: none
volumes:
- /opt/tools
+6
View File
@@ -60,6 +60,12 @@
required: true
default: true
type: "boolean"
- variable: "acme_onhostrule"
description: "Enable acme onHostRule."
label: "ACME onHostRule:"
required: true
default: true
type: "boolean"
- variable: "ssl_key"
description: "SSL key to secure the service. *Required if you enable https"
label: "SSL key"