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:
|
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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user