From 2b3ccdad9a1a476a51eb89e9de3645d4ef2089ed Mon Sep 17 00:00:00 2001 From: Alex Kelly Date: Fri, 13 Mar 2026 22:38:06 -0400 Subject: [PATCH] add healthcheck --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 26f35c8..5b389ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,11 +23,13 @@ RUN cd logseq/deps/db-sync && mkdir -p /logseq-sync/worker && mv worker/dist /lo FROM node:22-alpine3.21 COPY --from=builder /logseq-sync /logseq-sync RUN apk add --no-cache \ - bash + bash \ + curl WORKDIR /logseq-sync EXPOSE 8787 +HEALTHCHECK CMD curl --fail http://localhost:8787/health || exit 1 # Default command CMD ["bash", "start.sh"]