From f7c46a46f4e7c25e3be69b4f443f5a56b7e96dac Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sat, 1 Jul 2023 19:37:47 -0400 Subject: [PATCH] fix: mount the traefik data directory instead of the acme.json file when starting traefik Without this change, Docker - at least on arm64 - appears to mount the file as 0755 instead of 0600. We can trick docker by mounting the folder and then referencing _that_ instead. --- plugins/traefik-vhosts/templates/compose.yml.sigil | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/traefik-vhosts/templates/compose.yml.sigil b/plugins/traefik-vhosts/templates/compose.yml.sigil index 7102f374e..6bddb9938 100644 --- a/plugins/traefik-vhosts/templates/compose.yml.sigil +++ b/plugins/traefik-vhosts/templates/compose.yml.sigil @@ -21,7 +21,7 @@ services: {{ if $.TRAEFIK_LETSENCRYPT_EMAIL }} - --certificatesresolvers.leresolver.acme.caserver={{ $.TRAEFIK_LETSENCRYPT_SERVER }} - --certificatesresolvers.leresolver.acme.email={{ $.TRAEFIK_LETSENCRYPT_EMAIL }} - - --certificatesresolvers.leresolver.acme.storage=/acme.json + - --certificatesresolvers.leresolver.acme.storage=/data/acme.json - --certificatesresolvers.leresolver.acme.tlschallenge=true {{ end }} @@ -59,4 +59,4 @@ services: volumes: - "/var/run/docker.sock:/var/run/docker.sock:ro" - - "{{ $.TRAEFIK_DATA_DIR }}/traefik-acme.json:/acme.json" + - "{{ $.TRAEFIK_DATA_DIR }}:/data"