From 787a56ce51cc99fba5257c261c006e056d1a7be6 Mon Sep 17 00:00:00 2001 From: Klaas van Schelven Date: Wed, 2 Apr 2025 14:53:27 +0200 Subject: [PATCH] fix(service): add health check to Bugsink service (#5512) --- templates/compose/bugsink.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/compose/bugsink.yaml b/templates/compose/bugsink.yaml index bf015d727..5cdca45d1 100644 --- a/templates/compose/bugsink.yaml +++ b/templates/compose/bugsink.yaml @@ -36,6 +36,11 @@ services: depends_on: mysql: condition: service_healthy + healthcheck: + test: ["CMD-SHELL", "python -c 'import requests; requests.get(\"http://localhost:8000/\").raise_for_status()'"] + interval: 5s + timeout: 20s + retries: 10 volumes: - my-datavolume: \ No newline at end of file + my-datavolume: