refactoring traefik

This commit is contained in:
2026-04-15 07:12:01 +02:00
parent fd9a34e273
commit 5d1de4bc4e
+16 -2
View File
@@ -3,8 +3,8 @@ services:
image: traefik:v3.6
container_name: traefik
command:
#- "--api.dashboard=true"
- "--api.insecure=true"
- "--api.dashboard=true"
- "--api.insecure=false"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
@@ -33,6 +33,20 @@ services:
- ./letsencrypt:/letsencrypt
networks:
- proxy_tier
restart: unless-stopped
healthcheck:
test: ["CMD", "traefik", "healthcheck", "--ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
resources:
limits:
cpus: '2'
memory: 512M
reservations:
cpus: '1'
memory: 256M
labels:
# THE MIDDLEWARE DEFINITION
- "traefik.http.middlewares.authelia-auth.forwardauth.address=http://authelia:9091/api/verify?rd=https://auth.quangkhai.ch/"