refactoring traefik
This commit is contained in:
@@ -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/"
|
||||
|
||||
Reference in New Issue
Block a user