Set default healthcheck

This commit is contained in:
Colin Hebert 2024-01-01 12:16:41 +01:00
parent 670a3f6c7f
commit d2bb66f0f1
No known key found for this signature in database

View File

@ -270,3 +270,5 @@ ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
EXPOSE 8000 EXPOSE 8000
CMD ["/usr/local/bin/paperless_cmd.sh"] CMD ["/usr/local/bin/paperless_cmd.sh"]
HEALTHCHECK --interval=30s --timeout=10s --retries=5 CMD [ "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000" ]