Fix Immich server startup - add extended health check for slow NAS node
This commit is contained in:
@@ -55,6 +55,8 @@ services:
|
||||
deploy:
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
delay: 10s
|
||||
max_attempts: 10
|
||||
placement:
|
||||
constraints:
|
||||
- node.labels.type == nas
|
||||
@@ -70,6 +72,12 @@ services:
|
||||
- traefik.http.services.immich-websecure.loadbalancer.server.port=2283
|
||||
- traefik.http.routers.immich-websecure.service=immich-websecure
|
||||
- traefik.http.routers.immich-websecure.tls.certresolver=letsencrypt
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:2283/api/server/ping"]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 10
|
||||
start_period: 120s
|
||||
|
||||
volumes:
|
||||
immich-redis-data:
|
||||
|
||||
Reference in New Issue
Block a user