Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions DockerHealthcheck.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN set -x \
nasm \
libpng-dev \
python3 \
curl \
&& npm install \
&& apk del .build-dependencies \
&& npm run webpack \
Expand Down