1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-07-24 04:50:40 +00:00
vaultwarden/docker/healthcheck.sh
2019-09-04 09:12:53 +02:00

8 lines
No EOL
191 B
Bash

#!/usr/bin/env sh
if [ -z "$ROCKET_TLS"]
then
curl --fail http://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
else
curl --fail https://localhost:${ROCKET_PORT:-"80"}/alive || exit 1
fi