From cdb3d863dbe343a33ea050c388400bdcfa574ff6 Mon Sep 17 00:00:00 2001 From: Gionata Mettifogo Date: Thu, 4 Apr 2024 08:38:53 +0200 Subject: [PATCH] Update stirling-pdf.yaml The service works fine now but shows up as Running (unhealthy). Adding a check on its main page on port 8080 makes it healthy. --- templates/compose/stirling-pdf.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/compose/stirling-pdf.yaml b/templates/compose/stirling-pdf.yaml index ac2737adc..1fb3789e8 100644 --- a/templates/compose/stirling-pdf.yaml +++ b/templates/compose/stirling-pdf.yaml @@ -15,3 +15,8 @@ services: environment: - SERVICE_FQDN_SPDF_8080 - DOCKER_ENABLE_SECURITY=false + healthcheck: + test: 'curl --fail -I http://localhost:8080 || exit 1' + interval: 5s + timeout: 20s + retries: 10