From e16e6e0a743f1c31d2aecd1056b3d6fc6601407e Mon Sep 17 00:00:00 2001 From: Khiet Tam Nguyen Date: Sat, 11 Jan 2025 02:18:16 +1100 Subject: [PATCH] fix: added healthcheck for gotenberg template --- templates/compose/gotenberg.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/compose/gotenberg.yaml b/templates/compose/gotenberg.yaml index 8f53e2b17..d93b175ae 100644 --- a/templates/compose/gotenberg.yaml +++ b/templates/compose/gotenberg.yaml @@ -22,4 +22,9 @@ services: #"--api-timeout=60s", #"--chromium-auto-start" ] - restart: unless-stopped \ No newline at end of file + restart: unless-stopped + healthcheck: + test: ["CMD", "curl", "-f", "http://127.0.0.1:3000/version"] + interval: 5s + timeout: 20s + retries: 10