From aa470d234d8a5c02226995e97f8eb922e7d54da7 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Mon, 27 Aug 2018 17:47:34 -0400 Subject: [PATCH] Minor quality of life updates --- templates/Traefik/0/docker-compose.yml | 6 +++--- templates/Traefik/0/rancher-compose.yml | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/templates/Traefik/0/docker-compose.yml b/templates/Traefik/0/docker-compose.yml index 8cc6594..95ed751 100644 --- a/templates/Traefik/0/docker-compose.yml +++ b/templates/Traefik/0/docker-compose.yml @@ -1,6 +1,6 @@ version: '2' -services: +services: traefik: image: traefik:latest command: --api --docker @@ -20,8 +20,8 @@ services: restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock - - /RancherConfig/Personal/Traefik/traefik.toml:/traefik.toml - - /RancherConfig/Personal/Traefik/acme.json:/acme.json + - /RancherConfig/${DATA_DIR}/traefik.toml:/traefik.toml + - /RancherConfig/${DATA_DIR}/acme.json:/acme.json networks: public-proxy: \ No newline at end of file diff --git a/templates/Traefik/0/rancher-compose.yml b/templates/Traefik/0/rancher-compose.yml index bafbbc3..9dbeea1 100644 --- a/templates/Traefik/0/rancher-compose.yml +++ b/templates/Traefik/0/rancher-compose.yml @@ -23,4 +23,12 @@ catalog: The port to access the dashboard interface on. default: "1200" required: true + type: string + + - variable: DATA_DIR + label: "Data Directory" + description: | + The persistent data directory + default: "Personal/Traefik" + required: true type: string \ No newline at end of file