Create DockerHealthcheck.sh

This commit is contained in:
Till Tomczak 2023-11-10 23:11:02 +01:00 committed by GitHub
parent e9ece21d20
commit 84e73c92fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

11
DockerHealthcheck.sh Normal file
View File

@ -0,0 +1,11 @@
#!/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