]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Set Docker default healthcheck in the Dockerfile (#5199)
authorColin Hebert <active.luck0981@dedicated.contact>
Tue, 2 Jan 2024 17:08:10 +0000 (04:08 +1100)
committerGitHub <noreply@github.com>
Tue, 2 Jan 2024 17:08:10 +0000 (09:08 -0800)
Dockerfile

index 1f91346511dfb5b6c34553dedb24cc897c4f29f7..46fdbcd0bbe1915b51af97f2cc7d13794b4e9f4a 100644 (file)
@@ -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" ]