From 6cae0123637a629165d1b22cfc15b4ca0ff87a5d Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Fri, 24 Aug 2018 16:59:20 -0400 Subject: [PATCH] Added hostname override --- templates/Traefik/0/docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/Traefik/0/docker-compose.yml b/templates/Traefik/0/docker-compose.yml index 7877f92..bd0e49a 100644 --- a/templates/Traefik/0/docker-compose.yml +++ b/templates/Traefik/0/docker-compose.yml @@ -6,6 +6,7 @@ services: labels: io.rancher.container.agent.role: environment io.rancher.container.create_agent: true + io.rancher.container.hostname_override: traefik io.rancher.container.pull_image: always {{- if (.Values.HOST_LABEL)}} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} @@ -16,7 +17,7 @@ services: ports: - "80:80" - "443:443" - - "8080:8080" + - "${DASHBOARD_PORT}:8080" restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock