vaultwarden/overlay/usr/local/bin/healthcheck.sh

10 lines
137 B
Bash
Executable File

#!/usr/bin/env sh
set -eo pipefail
URL=http://localhost:80/alive
wget --quiet --tries=1 --spider ${URL}
[ $? -ne 0 ] && exit 1
exit 0