Refactor Authelia service configuration: remove user setting, update healthcheck command, and adjust retries/start period

This commit is contained in:
Mohmmed Elfateh Sabry
2025-08-11 15:16:01 +03:00
parent 526a2c70f1
commit 91ca7bfdc7

View File

@@ -98,9 +98,6 @@ services:
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
depends_on:
authelia:
condition: service_healthy
labels:
- traefik.enable=true
- traefik.http.routers.portainer.rule=Host(`portainer.gate.${DOMAIN}`)
@@ -116,7 +113,6 @@ services:
image: authelia/authelia:latest
container_name: authelia
restart: unless-stopped
user: "1000:1000"
networks: [traefik_proxy, internal]
volumes:
- ./authelia:/config
@@ -127,11 +123,11 @@ services:
AUTHELIA_STORAGE_ENCRYPTION_KEY: "${AUTHELIA_STORAGE_ENCRYPTION_KEY}"
DOMAIN: "${DOMAIN}"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9091/api/health"]
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:9091/api/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
retries: 5
start_period: 60s
labels:
- traefik.enable=true
- traefik.http.routers.authelia.rule=Host(`auth.gate.${DOMAIN}`)
@@ -155,9 +151,6 @@ services:
volumes:
- uptime_kuma_data:/app/data
networks: [traefik_proxy]
depends_on:
authelia:
condition: service_healthy
labels:
- traefik.enable=true
- traefik.http.routers.kuma.rule=Host(`uptime.gate.${DOMAIN}`)