From fac089dcb5fb1e9eb3205d33fb60319794cf1156 Mon Sep 17 00:00:00 2001 From: eagle-1 <6061706+eagle-1@users.noreply.github.com> Date: Mon, 15 Sep 2025 17:53:40 +0200 Subject: [PATCH] consider environment variable SUBFOLDER in healthcheck.sh if we make use of environment variable SUBFOLDER in container deployment, healthcheck never goes green because a wrong path will be checked. Tested with environment: - SUBFOLDER=/nbx/ if we use "${SUBFOLDER:-/}" instead of a plain "/" in Check Web App the healthcheck will succeed. --- root/healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root/healthcheck.sh b/root/healthcheck.sh index f800c43..87df7b7 100755 --- a/root/healthcheck.sh +++ b/root/healthcheck.sh @@ -13,7 +13,7 @@ if ! curl -fs http://127.0.0.1:${NGINX_PORT:-80}/ > /dev/null; then fi # Check Web App -if ! curl -fs http://127.0.0.1:${WEB_APP_PORT:-3000}/ > /dev/null; then +if ! curl -fs http://127.0.0.1:${WEB_APP_PORT:-3000}${SUBFOLDER:-/} > /dev/null; then echo "Web App check failed" exit 1 fi