From 9457de32b6467dfe52df2a60750a151f83312f61 Mon Sep 17 00:00:00 2001 From: eikek Date: Wed, 11 Aug 2021 19:21:41 +0200 Subject: [PATCH] Fix health check in docker images --- docker/dockerfiles/joex.dockerfile | 4 ++-- docker/dockerfiles/restserver.dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/dockerfiles/joex.dockerfile b/docker/dockerfiles/joex.dockerfile index a75de16c..3fdebd6f 100644 --- a/docker/dockerfiles/joex.dockerfile +++ b/docker/dockerfiles/joex.dockerfile @@ -68,5 +68,5 @@ COPY joex-entrypoint.sh /opt/joex-entrypoint.sh ENTRYPOINT ["/opt/joex-entrypoint.sh", "-J-XX:+UseG1GC"] EXPOSE 7878 -HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=10s \ - CMD pgrep -f joex/lib +HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=30s \ + CMD wget --spider http://localhost:7878/api/info/version diff --git a/docker/dockerfiles/restserver.dockerfile b/docker/dockerfiles/restserver.dockerfile index 870fb349..aa39cfe8 100644 --- a/docker/dockerfiles/restserver.dockerfile +++ b/docker/dockerfiles/restserver.dockerfile @@ -18,4 +18,4 @@ ENTRYPOINT ["/opt/docspell-restserver/bin/docspell-restserver", "-J-XX:+UseG1GC" EXPOSE 7880 HEALTHCHECK --interval=1m --timeout=10s --retries=2 --start-period=30s \ - CMD wget --spider http://localhost:7880 + CMD wget --spider http://localhost:7880/api/info/version