From 46e6be319f7efa4c102d1c245e39ff95b65f5435 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Wed, 3 Jan 2024 04:08:10 +1100 Subject: [PATCH] Set Docker default healthcheck in the Dockerfile (#5199) --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1f9134651..46fdbcd0b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -270,3 +270,5 @@ ENTRYPOINT ["/sbin/docker-entrypoint.sh"] EXPOSE 8000 CMD ["/usr/local/bin/paperless_cmd.sh"] + +HEALTHCHECK --interval=30s --timeout=10s --retries=5 CMD [ "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000" ]