Browse Source

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
pull/3786/head
Caros2017 2 years ago
committed by GitHub
parent
commit
718e98cb18
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docker/healthcheck.sh

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

Loading…
Cancel
Save