From e40c4b1a894482bbef0727d88e6abbd3cee66cf0 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Tue, 17 Jul 2018 06:40:21 -0400 Subject: [PATCH] Added labels for Rancher integration --- templates/Traefik/0/docker-compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/Traefik/0/docker-compose.yml b/templates/Traefik/0/docker-compose.yml index 63439b0..fea4189 100644 --- a/templates/Traefik/0/docker-compose.yml +++ b/templates/Traefik/0/docker-compose.yml @@ -5,6 +5,8 @@ services: 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 {{- if (.Values.HOST_LABEL)}} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}