Add a Docker healthcheck (#99)

* Add a Docker healthcheck

* Fix regexp

* Add --start-period to healthcheck
This commit is contained in:
Mish 2025-11-11 02:28:28 +00:00 committed by GitHub
parent 20f7e8571b
commit accd86610e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,4 +17,6 @@ ENV PATH="/app/.venv/bin:$PATH"
RUN prisma db push
CMD ["nephthys"]
CMD ["nephthys"]
HEALTHCHECK --start-period=5s CMD curl --fail http://localhost:3000/health | grep -E '"healthy":\s*true' || exit 1