Added Traefik host option

This commit is contained in:
WilliamMiceli
2018-08-27 18:23:44 -04:00
parent 9a1e3178e1
commit 8523f16cef
2 changed files with 15 additions and 2 deletions

View File

@@ -8,13 +8,17 @@ services:
- 1.0.0.1
labels:
io.rancher.container.pull_image: always
{{- if (.Values.HOST_LABEL)}}
{{- if .Values.HOST_LABEL}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true
traefik.frontend.rule: Host:blog.williammiceli.me
traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "2368"
traefik.frontend.entryPoints: https
{{- else}}
traefik.enable: false
{{- end}}
networks:
- public-proxy
ports: