Files
nginx-proxy-manager/docker/rootfs/bin/healthcheck.sh
2021-07-15 20:38:04 +10:00

8 lines
195 B
Bash
Executable File

#!/usr/bin/env bash
set -euf -o pipefail
HEALTHY="$(curl --silent "http://127.0.0.1:3000/api" | jq --raw-output '.result.healthy')"
echo "Healthy: ${HEALTHY}"
[ "$HEALTHY" = 'true' ] || exit 1