From 24ef4079e7afcc75e52976029255239a7d57f423 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Tue, 28 Aug 2018 23:21:11 -0400 Subject: [PATCH] Added Traefik label to pass the host header --- templates/InvoiceNinja/0/docker-compose.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/templates/InvoiceNinja/0/docker-compose.yml b/templates/InvoiceNinja/0/docker-compose.yml index b5c65c6..6dd504f 100644 --- a/templates/InvoiceNinja/0/docker-compose.yml +++ b/templates/InvoiceNinja/0/docker-compose.yml @@ -30,18 +30,8 @@ services: io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} {{- end}} io.rancher.sidekicks: cron, web - {{- if .Values.TRAEFIK_HOST}} - traefik.enable: true - traefik.frontend.rule: Host:${TRAEFIK_HOST} - traefik.port: "80" - traefik.frontend.entryPoints: https - {{- else}} - traefik.enable: false - {{- end}} links: - mysql - networks: - - public-proxy restart: on-failure volumes: - Logo:/var/www/app/public/logo @@ -116,6 +106,15 @@ 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:${TRAEFIK_HOST} + traefik.port: "80" + traefik.frontend.entryPoints: https + traefik.frontend.passHostHeader: true + {{- else}} + traefik.enable: false + {{- end}} links: - app networks: