From 46482a90560a53b47d204b7db724632e7885dbaf Mon Sep 17 00:00:00 2001 From: Thomas Miceli <27960254+thomiceli@users.noreply.github.com> Date: Fri, 5 Jan 2024 22:29:01 +0100 Subject: [PATCH] Add Healthcheck on Docker (#204) --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 2e389253..fc5a0329 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,4 +49,5 @@ COPY --from=build --chown=opengist:opengist /opengist/docker ./docker EXPOSE 6157 2222 VOLUME /opengist +HEALTHCHECK --interval=60s --timeout=30s --start-period=15s --retries=3 CMD curl -f http://localhost:6157/healthcheck || exit 1 ENTRYPOINT ["./docker/entrypoint.sh"]