From ac93705371e89cf6f88aa3e70c01165a1255ca56 Mon Sep 17 00:00:00 2001 From: Christian Lempa Date: Sat, 12 Oct 2024 09:11:47 +0200 Subject: [PATCH] traefik config enhancements --- docker-compose/traefik/compose.yaml | 12 ++++++------ .../{conf => conf.d}/example-externalservice.yaml | 0 docker-compose/traefik/config/traefik.yaml | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) rename docker-compose/traefik/config/{conf => conf.d}/example-externalservice.yaml (100%) diff --git a/docker-compose/traefik/compose.yaml b/docker-compose/traefik/compose.yaml index f066e4e..eba66d6 100644 --- a/docker-compose/traefik/compose.yaml +++ b/docker-compose/traefik/compose.yaml @@ -1,8 +1,4 @@ --- -# -- (Optional) When using a custom network -# networks: -# your-traefik-network: -# external: true services: traefik: image: docker.io/library/traefik:v3.1.6 @@ -15,8 +11,8 @@ services: volumes: - /run/docker.sock:/run/docker.sock:ro - ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro - - ./config/conf/:/etc/traefik/conf/ - - ./config/certs/:/etc/traefik/certs/ + - ./config/conf.d/:/etc/traefik/conf.d/:ro + - ./data/certs/:/var/traefik/certs/:rw # -- (Optional) When using Cloudflare as Cert Resolver # environment: # - CF_DNS_API_TOKEN=your-cloudflare-api-token @@ -24,3 +20,7 @@ services: # networks: # - your-traefik-network restart: unless-stopped +# -- (Optional) When using a custom network +# networks: +# your-traefik-network: +# external: true diff --git a/docker-compose/traefik/config/conf/example-externalservice.yaml b/docker-compose/traefik/config/conf.d/example-externalservice.yaml similarity index 100% rename from docker-compose/traefik/config/conf/example-externalservice.yaml rename to docker-compose/traefik/config/conf.d/example-externalservice.yaml diff --git a/docker-compose/traefik/config/traefik.yaml b/docker-compose/traefik/config/traefik.yaml index 701b468..149ce43 100644 --- a/docker-compose/traefik/config/traefik.yaml +++ b/docker-compose/traefik/config/traefik.yaml @@ -43,7 +43,7 @@ entryPoints: # staging: # acme: # email: your-email@example.com -# storage: /etc/traefik/certs/acme.json +# storage: /var/traefik/certs/cloudflare-acme.json # caServer: "https://acme-staging-v02.api.letsencrypt.org/directory" # -- (Optional) Remove this section, when using DNS Challenge # httpChallenge: @@ -57,7 +57,7 @@ entryPoints: # production: # acme: # email: your-email@example.com -# storage: /etc/traefik/certs/acme.json +# storage: /var/traefik/certs/cloudflare-acme.json # caServer: "https://acme-v02.api.letsencrypt.org/directory" # -- (Optional) Remove this section, when using DNS Challenge # httpChallenge: