mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-22 00:03:16 +01:00
traefik config enhancements
This commit is contained in:
parent
fe10b801d8
commit
ac93705371
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user