mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Create DockerHealthcheck.sh
This commit is contained in:
parent
e9ece21d20
commit
84e73c92fe
11
DockerHealthcheck.sh
Normal file
11
DockerHealthcheck.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user