aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH3npi <[email protected]>2019-09-04 09:12:53 +0200
committerH3npi <[email protected]>2019-09-04 09:12:53 +0200
commitcce3ce816c1e21861631252d466fe014ab4980e7 (patch)
tree2d2205524cd3dc2b4b49dbdc059c3e9a6f681ef5
parent66a68f6d2258a0c5b262ee7687217334e1daffdc (diff)
downloadvaultwarden-cce3ce816c1e21861631252d466fe014ab4980e7.tar.gz
vaultwarden-cce3ce816c1e21861631252d466fe014ab4980e7.zip
Adds environment port to curl healthcheck
-rw-r--r--docker/healthcheck.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/healthcheck.sh b/docker/healthcheck.sh
index 08e9e8b1..7b4e3fc2 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