This commit is contained in:
root 2025-03-15 07:24:52 +00:00
parent 48101aacf4
commit dd94eeb398
3 changed files with 4 additions and 4 deletions

View file

View file

@ -16,9 +16,6 @@ entryPoints:
address: ":80"
https:
address: ":443"
http:
tls:
strictSNIHost: true
serversTransport:
insecureSkipVerify: false

View file

@ -2,7 +2,7 @@
services:
traefik:
image: traefik:${TRAEFIK_VERSION:-latest}
name: traefik
container_name: traefik
restart: unless-stopped
security_opt:
- "no-new-privileges:true"
@ -12,8 +12,11 @@ services:
- ${TRAEFIK_HTTP_PORT:-80}:80
- ${TRAEFIK_HTTPS_PORT:-443}:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/traefik:/etc/traefik
- ./data/certs:/etc/certs:ro
- ./data/logs/traefik.log:/var/log/traefik.log
- ./data/logs/access.log:/vat/log/crowdsec/traefik.log
environment:
- "CF_API_EMAIL=${CLOUDFLARE_MAIL:?error}"
- "CF_DNS_API_TOKEN=${CLOUDFLARE_TOKEN:?error}"