From accd86610e666ecfef1830f4c0d041c22c565f51 Mon Sep 17 00:00:00 2001 From: Mish Date: Tue, 11 Nov 2025 02:28:28 +0000 Subject: [PATCH] Add a Docker healthcheck (#99) * Add a Docker healthcheck * Fix regexp * Add --start-period to healthcheck --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 41c13c1..991b7af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,6 @@ ENV PATH="/app/.venv/bin:$PATH" RUN prisma db push -CMD ["nephthys"] \ No newline at end of file +CMD ["nephthys"] + +HEALTHCHECK --start-period=5s CMD curl --fail http://localhost:3000/health | grep -E '"healthy":\s*true' || exit 1 \ No newline at end of file