Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Set Docker default healthcheck in the Dockerfile (#5199)

Colin Hebert46e6be319f7e
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" ]