traefik config enhancements

This commit is contained in:
Christian Lempa 2024-10-12 09:11:47 +02:00
parent fe10b801d8
commit ac93705371
3 changed files with 8 additions and 8 deletions

View File

@ -1,8 +1,4 @@
--- ---
# -- (Optional) When using a custom network
# networks:
# your-traefik-network:
# external: true
services: services:
traefik: traefik:
image: docker.io/library/traefik:v3.1.6 image: docker.io/library/traefik:v3.1.6
@ -15,8 +11,8 @@ services:
volumes: volumes:
- /run/docker.sock:/run/docker.sock:ro - /run/docker.sock:/run/docker.sock:ro
- ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro - ./config/traefik.yaml:/etc/traefik/traefik.yaml:ro
- ./config/conf/:/etc/traefik/conf/ - ./config/conf.d/:/etc/traefik/conf.d/:ro
- ./config/certs/:/etc/traefik/certs/ - ./data/certs/:/var/traefik/certs/:rw
# -- (Optional) When using Cloudflare as Cert Resolver # -- (Optional) When using Cloudflare as Cert Resolver
# environment: # environment:
# - CF_DNS_API_TOKEN=your-cloudflare-api-token # - CF_DNS_API_TOKEN=your-cloudflare-api-token
@ -24,3 +20,7 @@ services:
# networks: # networks:
# - your-traefik-network # - your-traefik-network
restart: unless-stopped restart: unless-stopped
# -- (Optional) When using a custom network
# networks:
# your-traefik-network:
# external: true

View File

@ -43,7 +43,7 @@ entryPoints:
# staging: # staging:
# acme: # acme:
# email: your-email@example.com # 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" # caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
# -- (Optional) Remove this section, when using DNS Challenge # -- (Optional) Remove this section, when using DNS Challenge
# httpChallenge: # httpChallenge:
@ -57,7 +57,7 @@ entryPoints:
# production: # production:
# acme: # acme:
# email: your-email@example.com # 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" # caServer: "https://acme-v02.api.letsencrypt.org/directory"
# -- (Optional) Remove this section, when using DNS Challenge # -- (Optional) Remove this section, when using DNS Challenge
# httpChallenge: # httpChallenge: