From d77813d82f8e1fa567aaa4e2b2aa7efb2863b5bd Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 1 Nov 2023 22:18:22 +0100 Subject: [PATCH] Better healthcheck --- back/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/back/Dockerfile b/back/Dockerfile index bfdc6e53..ce2ca25a 100644 --- a/back/Dockerfile +++ b/back/Dockerfile @@ -25,5 +25,6 @@ COPY --from=builder /app /app WORKDIR /kyoo EXPOSE 5000 -HEALTHCHECK --interval=30s CMD curl --fail http://localhost:5000/health || exit +# The back can take a long time to start if meilisearch is initializing +HEALTHCHECK --interval=5s --retries=15 CMD curl --fail http://localhost:5000/health || exit CMD /app/Kyoo.Host