This commit is contained in:
Till Tomczak 2024-05-30 13:48:20 +08:00 committed by GitHub
commit 818019a603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 0 deletions

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

View file

@ -21,6 +21,7 @@ RUN set -x \
nasm \
libpng-dev \
python3 \
curl \
&& npm install \
&& apk del .build-dependencies \
&& npm run webpack \