From c1cb3885d7aa2450b0c05416bf66dfefbfa58cab Mon Sep 17 00:00:00 2001 From: shimun Date: Tue, 6 Oct 2020 23:15:22 +0200 Subject: [PATCH] short intervals --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8be0132..f6cd3d7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,6 +47,6 @@ RUN ulimit -n 30000 && mkdir -p $SEAF/pids && \ ENV SEAF_UPGRADE_INTERVAL=3 -HEALTHCHECK --interval=5m --timeout=30s --start-period=30s CMD curl http://localhost:8000 && curl http://localhost:8082 && bash -c '[ $(curl --silent --output /dev/stderr --write-out "%{http_code}" http://localhost:8080) -eq 401 ]' || exit 1 +HEALTHCHECK --interval=30s --timeout=30s --start-period=30s CMD (curl http://localhost:8000 || (echo "failed seahub"; exit 1)) && (curl http://localhost:8082 || (echo "failed seafhttp"; exit 1)) && (bash -c '[ $(curl --silent --output /dev/null --write-out "%{http_code}" http://localhost:8080) -eq 401 ]' || (echo "failed seafdav"; exit 1)) || exit 1 ENTRYPOINT ["/usr/sbin/riffol", "-f", "/etc/riffol.conf"]