trilium/DockerHealthcheck.sh
2023-11-10 23:11:02 +01:00

12 lines
198 B
Bash

#!/bin/sh
URL=${TRILIUM_URL:-"http://localhost:8080"}
if curl -s "$URL" > /dev/null; then
echo "Trilium is up and running."
exit 0
else
echo "Trilium is not responding."
exit 1
fi