From f569bf18f146ed6ff5502d04aeb0deb884187dbb Mon Sep 17 00:00:00 2001 From: Jean Froment Date: Sun, 25 Oct 2020 21:13:30 +0100 Subject: [PATCH] Add pilot token as dynamic file config --- docker-compose.yml | 3 ++- traefik/custom/pilot.yaml | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 traefik/custom/pilot.yaml diff --git a/docker-compose.yml b/docker-compose.yml index 3891e2b..31f1390 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: container_name: traefik restart: always command: - - --certificatesresolvers.le.acme.email=${ACME_MAIL} --pilot.token=${PILOT_TOKEN} + - --certificatesresolvers.le.acme.email=${ACME_MAIL} ports: - "80:80" - "443:443" @@ -17,6 +17,7 @@ services: environment: - TRAEFIK_DOMAIN=${TRAEFIK_DOMAIN} - TZ=${TZ} + - PILOT_TOKEN=${PILOT_TOKEN} labels: - "traefik.enable=true" # Docker labels for enabling Traefik dashboard diff --git a/traefik/custom/pilot.yaml b/traefik/custom/pilot.yaml new file mode 100644 index 0000000..375c08c --- /dev/null +++ b/traefik/custom/pilot.yaml @@ -0,0 +1,2 @@ +pilot: + token: "{{env "PILOT_TOKEN"}}" \ No newline at end of file