Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Add docker health check
Bill Sideris57609a595277
diff --git a/DockerHealthcheck.sh b/DockerHealthcheck.shnew file mode 100755index 0000000000..6c07657684--- /dev/null+++ b/DockerHealthcheck.sh@@ -0,0 +1,6 @@+#!/bin/sh+if wget --spider -S "127.0.0.1:8080" 2>&1 | grep -w "302" ; then+ exit 0+else+ exit 1+fidiff --git a/Dockerfile b/Dockerfileindex 1c94e8c6ca..477dd963b6 100644--- a/Dockerfile+++ b/Dockerfile@@ -33,3 +33,5 @@ RUN adduser -s /bin/false node; exit 0# Start the applicationEXPOSE 8080CMD [ "./start-docker.sh" ]++HEALTHCHECK CMD sh DockerHealthcheck.sh