vaultwarden/overlay/usr/local/bin/healthcheck

11 lines
140 B
Plaintext
Raw Normal View History

2020-01-16 23:57:45 +00:00
#!/usr/bin/env sh
2020-02-01 22:14:37 +00:00
2020-02-03 23:35:23 +00:00
set -eo pipefail
2020-02-01 17:34:59 +00:00
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