From 718e98cb18e54120142badbc4a459f75abb3866b Mon Sep 17 00:00:00 2001 From: Caros2017 <32988054+Caros2017@users.noreply.github.com> Date: Fri, 18 Aug 2023 21:19:12 +0200 Subject: [PATCH] IPv6 healthcheck.sh failing fix When I enabled IPv6 I later realized that the healthcheck of the container was failing. Setting "ROCKET_ADDRESS=::" in docker-compose gives the error: "$ docker-compose up -d --build services.vaultwarden.environment.13 must be a string" So to be able to use IPv6 ROCKET_ADDRESS needs to be set to ::0: "ROCKET_ADDRESS=::0" In bash :: doesn't equal ::0 and hence my healthcheck is failing, since it isn't rewritten to localhost --- docker/healthcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/healthcheck.sh b/docker/healthcheck.sh index ee95d57d..1cbe043c 100755 --- a/docker/healthcheck.sh +++ b/docker/healthcheck.sh @@ -46,7 +46,7 @@ if [ -r "${CONFIG_FILE}" ]; then fi addr="${ROCKET_ADDRESS}" -if [ -z "${addr}" ] || [ "${addr}" = '0.0.0.0' ] || [ "${addr}" = '::' ]; then +if [ -z "${addr}" ] || [ "${addr}" = '0.0.0.0' ] || [ "${addr}" = '::0' ]; then addr='localhost' fi base_path="$(get_base_path "${DOMAIN}")"