From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 2 May 2022 21:20:47 +0000 (-0700) Subject: Add timeout to healthcheck X-Git-Tag: v1.8.0-beta.rc1~135^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F880%2Fhead;p=thirdparty%2Fpaperless-ngx.git Add timeout to healthcheck --- diff --git a/docker/compose/docker-compose.portainer.yml b/docker/compose/docker-compose.portainer.yml index acf3ec2ece..4e23063092 100644 --- a/docker/compose/docker-compose.portainer.yml +++ b/docker/compose/docker-compose.portainer.yml @@ -55,7 +55,7 @@ services: ports: - 8010:8000 healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000"] + test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"] interval: 30s timeout: 10s retries: 5 diff --git a/docker/compose/docker-compose.postgres-tika.yml b/docker/compose/docker-compose.postgres-tika.yml index d8f93fb790..356e8161a7 100644 --- a/docker/compose/docker-compose.postgres-tika.yml +++ b/docker/compose/docker-compose.postgres-tika.yml @@ -59,7 +59,7 @@ services: ports: - 8000:8000 healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000"] + test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"] interval: 30s timeout: 10s retries: 5 diff --git a/docker/compose/docker-compose.postgres.yml b/docker/compose/docker-compose.postgres.yml index 7ad8a32d6e..f6b3311cdd 100644 --- a/docker/compose/docker-compose.postgres.yml +++ b/docker/compose/docker-compose.postgres.yml @@ -53,7 +53,7 @@ services: ports: - 8000:8000 healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000"] + test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"] interval: 30s timeout: 10s retries: 5 diff --git a/docker/compose/docker-compose.sqlite-tika.yml b/docker/compose/docker-compose.sqlite-tika.yml index a898527da3..d025caacca 100644 --- a/docker/compose/docker-compose.sqlite-tika.yml +++ b/docker/compose/docker-compose.sqlite-tika.yml @@ -48,7 +48,7 @@ services: ports: - 8000:8000 healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000"] + test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"] interval: 30s timeout: 10s retries: 5 diff --git a/docker/compose/docker-compose.sqlite.yml b/docker/compose/docker-compose.sqlite.yml index ea458fed06..9bab0cee90 100644 --- a/docker/compose/docker-compose.sqlite.yml +++ b/docker/compose/docker-compose.sqlite.yml @@ -39,7 +39,7 @@ services: ports: - 8000:8000 healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000"] + test: ["CMD", "curl", "-fs", "-S", "--max-time", "2", "http://localhost:8000"] interval: 30s timeout: 10s retries: 5