From ac939cde617aa1524890bd303746f54746197b58 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Thu, 23 Aug 2018 21:01:50 -0400 Subject: [PATCH] Minor tweaks to default setup --- templates/Traefik/0/docker-compose.yml | 4 +--- templates/Traefik/0/rancher-compose.yml | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/Traefik/0/docker-compose.yml b/templates/Traefik/0/docker-compose.yml index 531e2bd..d85bf2b 100644 --- a/templates/Traefik/0/docker-compose.yml +++ b/templates/Traefik/0/docker-compose.yml @@ -3,11 +3,9 @@ services: traefik: image: traefik:latest - command: --api --docker 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} @@ -18,7 +16,7 @@ services: ports: - "80:80" - "443:443" - - "8080:8080" + - "${DASHBOARD_PORT}:8080" restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock diff --git a/templates/Traefik/0/rancher-compose.yml b/templates/Traefik/0/rancher-compose.yml index b0d5a31..bafbbc3 100644 --- a/templates/Traefik/0/rancher-compose.yml +++ b/templates/Traefik/0/rancher-compose.yml @@ -15,4 +15,12 @@ catalog: The Key/Value pair on the host which the stack should be deployed. default: "host.id=Proxy1" required: false + type: string + + - variable: DASHBOARD_PORT + label: Port + description: | + The port to access the dashboard interface on. + default: "1200" + required: true type: string \ No newline at end of file