From cce3ce816c1e21861631252d466fe014ab4980e7 Mon Sep 17 00:00:00 2001 From: H3npi Date: Wed, 4 Sep 2019 09:12:53 +0200 Subject: [PATCH] Adds environment port to curl healthcheck --- docker/healthcheck.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/healthcheck.sh b/docker/healthcheck.sh index 08e9e8b..7b4e3fc 100644 --- a/docker/healthcheck.sh +++ b/docker/healthcheck.sh @@ -2,7 +2,7 @@ if [ -z "$ROCKET_TLS"] then - curl --fail http://localhost/alive || exit 1 + curl --fail http://localhost:${ROCKET_PORT:-"80"}/alive || exit 1 else - curl --fail https://localhost/alive || exit 1 + curl --fail https://localhost:${ROCKET_PORT:-"80"}/alive || exit 1 fi \ No newline at end of file