Add healthcheck

This commit is contained in:
Alan Grainger 2024-10-31 13:31:32 +01:00
parent e23a5dce99
commit 26beaf4742
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,4 @@
IMMICH_URL=http://localhost:2283
PROXY_PUBLIC_URL=http://localhost:3000
PORT=3000
CACHE_AGE=2592000

View File

@ -9,3 +9,7 @@ services:
- NODE_ENV=production
env_file:
- .env
healthcheck:
test: ([ "$(wget -qO- ${PROXY_PUBLIC_URL}/healthcheck)" = "ok" ] && exit 0) || exit 1
interval: 120s
start_period: 5s