Skip to content

⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.

Adding healthcheck to docker image

zodac5279d94b8c6f
diff --git a/Dockerfile b/Dockerfile
index d999194b..cce05d81 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,6 +37,12 @@ COPY . .
RUN yarn prisma generate && \
yarn build
+HEALTHCHECK --interval=30s \
+ --timeout=5s \
+ --start-period=10s \
+ --retries=3 \
+ CMD [ "/usr/bin/curl", "--silent", "--fail", "http://127.0.0.1:3000/" ]
+
EXPOSE 3000
CMD yarn prisma migrate deploy && yarn start