From 4293448ecdc5aa1d7c4365f8d86a0905ebf18a89 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Tue, 17 Jul 2018 06:30:12 -0400 Subject: [PATCH] Added network, volumes and hostname override --- templates/Traefik/0/docker-compose.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/templates/Traefik/0/docker-compose.yml b/templates/Traefik/0/docker-compose.yml index 0a52e62..63439b0 100644 --- a/templates/Traefik/0/docker-compose.yml +++ b/templates/Traefik/0/docker-compose.yml @@ -5,9 +5,12 @@ services: image: traefik:latest command: --api --docker labels: -{{- if (.Values.HOST_LABEL)}} + io.rancher.container.hostname_override: traefik + {{- if (.Values.HOST_LABEL)}} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} -{{- end}} + {{- end}} + networks: + - public ports: - "80:80" - "443:443" @@ -15,4 +18,8 @@ services: restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock - # container_name: traefik \ No newline at end of file + - /opt/traefik/traefik.toml:/traefik.toml + - /opt/traefik/acme.json:/acme.json + +networks: + public: \ No newline at end of file