Add healthcheck
This commit is contained in:
parent
e23a5dce99
commit
26beaf4742
@ -1,3 +1,4 @@
|
||||
IMMICH_URL=http://localhost:2283
|
||||
PROXY_PUBLIC_URL=http://localhost:3000
|
||||
PORT=3000
|
||||
CACHE_AGE=2592000
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user