Skip to content
Snippets Groups Projects
Unverified Commit 0a2a8be0 authored by Jeremy Lin's avatar Jeremy Lin
Browse files

Take `ROCKET_ADDRESS` into account in the Docker healthcheck

parent 720a0466
No related branches found
No related tags found
No related merge requests found
...@@ -45,9 +45,13 @@ if [ -r "${CONFIG_FILE}" ]; then ...@@ -45,9 +45,13 @@ if [ -r "${CONFIG_FILE}" ]; then
fi fi
fi fi
addr="${ROCKET_ADDRESS}"
if [ -z "${addr}" ] || [ "${addr}" = '0.0.0.0' ] || [ "${addr}" = '::' ]; then
addr='localhost'
fi
base_path="$(get_base_path "${DOMAIN}")" base_path="$(get_base_path "${DOMAIN}")"
if [ -n "${ROCKET_TLS}" ]; then if [ -n "${ROCKET_TLS}" ]; then
s='s' s='s'
fi fi
curl --insecure --fail --silent --show-error \ curl --insecure --fail --silent --show-error \
"http${s}://localhost:${ROCKET_PORT}${base_path}/alive" || exit 1 "http${s}://${addr}:${ROCKET_PORT}${base_path}/alive" || exit 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment