From 25c90964c1b2e08a7ed250576bd35fa930ac3390 Mon Sep 17 00:00:00 2001 From: librelol Date: Fri, 15 Nov 2024 12:23:39 -0500 Subject: [PATCH] Made the healthchecks more consistent alongside of templates. --- templates/compose/privatebin.yaml | 15 ++++----------- templates/compose/redlib.yaml | 13 ++++--------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/templates/compose/privatebin.yaml b/templates/compose/privatebin.yaml index 567272cb4..c2f625c8f 100644 --- a/templates/compose/privatebin.yaml +++ b/templates/compose/privatebin.yaml @@ -14,14 +14,7 @@ services: volumes: - 'privatebin-data:/srv/data' healthcheck: - test: - - CMD - - wget - - '--spider' - - '-q' - - 'http://localhost:8080/' - interval: 30s - timeout: 5s - retries: 3 - start_period: 10s - disable: false + test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/"] + interval: 5s + timeout: 20s + retries: 10 diff --git a/templates/compose/redlib.yaml b/templates/compose/redlib.yaml index c5b2f0d94..f4ef7f10c 100644 --- a/templates/compose/redlib.yaml +++ b/templates/compose/redlib.yaml @@ -40,12 +40,7 @@ services: cap_drop: - ALL healthcheck: - test: - - CMD - - wget - - '--spider' - - '-q' - - '--tries=1' - - 'http://localhost:8080/settings' - interval: 5m - timeout: 3s + test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/"] + interval: 5s + timeout: 20s + retries: 10