From d59ad594b8649f57f61453b0dfbc350c57b690a2 Mon Sep 17 00:00:00 2001 From: Emmanuel Frecon <9443924+efrecon@users.noreply.github.com> Date: Wed, 8 Nov 2023 17:59:46 +0100 Subject: [PATCH] fix: set correct port in docker healthcheck (#2812) When the `FB_PORT` environment variable is set, respect its value. Otherwise, pick the port from the configuration. --- healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/healthcheck.sh b/healthcheck.sh index 43eb2176..50263896 100644 --- a/healthcheck.sh +++ b/healthcheck.sh @@ -1,3 +1,3 @@ #!/bin/sh -PORT=$(jq .port /.filebrowser.json) +PORT=${FB_PORT:-$(jq .port /.filebrowser.json)} curl -f http://localhost:$PORT/health || exit 1