Set Docker default healthcheck in the Dockerfile (#5199)

This commit is contained in:
Colin Hebert 2024-01-03 04:08:10 +11:00 committed by GitHub
parent e6d6f21d33
commit 46e6be319f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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" ]