aboutsummaryrefslogtreecommitdiff
path: root/docker/healthcheck.sh
blob: 7b4e3fc225df91ca6bde636fe02c936fa8ae215d (plain)
1
2
3
4
5
6
7
8
#!/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