From 1a0ab0fbe698ddd62c14346d1940c4fb25cc3c05 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Mon, 14 Oct 2024 18:13:22 +0200 Subject: [PATCH] fix: add healthcheck for redis --- templates/compose/erpnext.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/templates/compose/erpnext.yaml b/templates/compose/erpnext.yaml index a041df940..663269ebe 100644 --- a/templates/compose/erpnext.yaml +++ b/templates/compose/erpnext.yaml @@ -158,6 +158,11 @@ services: deploy: restart_policy: condition: on-failure + healthcheck: + test: redis-cli ping + interval: 5s + retries: 10 + timeout: 2s volumes: - redis-queue-data:/data @@ -166,6 +171,11 @@ services: deploy: restart_policy: condition: on-failure + healthcheck: + test: redis-cli ping + interval: 5s + retries: 10 + timeout: 2s volumes: - redis-cache-data:/data