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:
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

View File

@ -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: