Added Traefik host option to questions and compose

This commit is contained in:
WilliamMiceli
2018-08-27 19:45:55 -04:00
parent 6e4e58fe85
commit eb324de37f
2 changed files with 21 additions and 8 deletions

View File

@@ -18,10 +18,14 @@ services:
{{- if (.Values.HOST_LABEL)}}
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
{{- end}}
{{- if .Values.TRAEFIK_HOST}}
traefik.enable: true
traefik.frontend.rule: Host:cloudtest.williammiceli.systems
traefik.frontend.rule: Host:${TRAEFIK_HOST}
traefik.port: "80"
traefik.frontend.entryPoints: https
{{- else}}
traefik.enable: false
{{- end}}
links:
- mysql
networks: