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

10 lines
139 B
Bash
Raw Normal View History

2020-01-16 23:57:45 +00:00
#!/usr/bin/env sh
set -eo pipefail
2020-01-18 16:26:41 +00:00
URL=http://127.0.0.1:8080/alive
2020-01-16 23:57:45 +00:00
wget --quiet --tries=1 --spider ${URL}
[ $? -ne 0 ] && exit 1
exit 0