Refactor Authelia service configuration: remove user setting, update healthcheck command, and adjust retries/start period
This commit is contained in:
@@ -98,9 +98,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- portainer_data:/data
|
- portainer_data:/data
|
||||||
depends_on:
|
|
||||||
authelia:
|
|
||||||
condition: service_healthy
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.portainer.rule=Host(`portainer.gate.${DOMAIN}`)
|
- traefik.http.routers.portainer.rule=Host(`portainer.gate.${DOMAIN}`)
|
||||||
@@ -116,7 +113,6 @@ services:
|
|||||||
image: authelia/authelia:latest
|
image: authelia/authelia:latest
|
||||||
container_name: authelia
|
container_name: authelia
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
user: "1000:1000"
|
|
||||||
networks: [traefik_proxy, internal]
|
networks: [traefik_proxy, internal]
|
||||||
volumes:
|
volumes:
|
||||||
- ./authelia:/config
|
- ./authelia:/config
|
||||||
@@ -127,11 +123,11 @@ services:
|
|||||||
AUTHELIA_STORAGE_ENCRYPTION_KEY: "${AUTHELIA_STORAGE_ENCRYPTION_KEY}"
|
AUTHELIA_STORAGE_ENCRYPTION_KEY: "${AUTHELIA_STORAGE_ENCRYPTION_KEY}"
|
||||||
DOMAIN: "${DOMAIN}"
|
DOMAIN: "${DOMAIN}"
|
||||||
healthcheck:
|
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
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 5
|
||||||
start_period: 40s
|
start_period: 60s
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.authelia.rule=Host(`auth.gate.${DOMAIN}`)
|
- traefik.http.routers.authelia.rule=Host(`auth.gate.${DOMAIN}`)
|
||||||
@@ -155,9 +151,6 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- uptime_kuma_data:/app/data
|
- uptime_kuma_data:/app/data
|
||||||
networks: [traefik_proxy]
|
networks: [traefik_proxy]
|
||||||
depends_on:
|
|
||||||
authelia:
|
|
||||||
condition: service_healthy
|
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.kuma.rule=Host(`uptime.gate.${DOMAIN}`)
|
- traefik.http.routers.kuma.rule=Host(`uptime.gate.${DOMAIN}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user