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
This commit is contained in:
Caros2017 2023-08-18 21:19:12 +02:00 committed by GitHub
parent 3d2df6ce11
commit 718e98cb18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}")"