From 81cd8fc6d307b00af278beefcdbad4158a128fea Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Tue, 30 Jan 2024 10:37:17 +0100 Subject: [PATCH] fix(healthcheck): use address configured if not empty (#2938) --- healthcheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/healthcheck.sh b/healthcheck.sh index 50263896b2..cea8a1cb95 100644 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,3 +1,5 @@ #!/bin/sh PORT=${FB_PORT:-$(jq .port /.filebrowser.json)} -curl -f http://localhost:$PORT/health || exit 1 +ADDRESS=${FB_ADDRESS:-$(jq .address /.filebrowser.json)} +ADDRESS=${ADDRESS:-localhost} +curl -f http://$ADDRESS:$PORT/health || exit 1