From 87e991b0e720c580a71e2c2c10f9ab44183db322 Mon Sep 17 00:00:00 2001 From: Alex Skrenchuk Date: Thu, 14 Mar 2024 21:27:47 -0700 Subject: [PATCH] fix healthcheck for AG --- docker-compose.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 71b2fe70..f66e7fef 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -39,11 +39,11 @@ services: ; agtool users grant anonymous root:ontoportal_test:rw ; tail -f /agraph/data/agraph.log" healthcheck: - test: ["CMD-SHELL", "curl -m 1 -sf http://127.0.0.1:10035/repositories/ontoportal_test/status | grep -iqE '(^running|^lingering)' || exit 1"] - start_period: 60s + test: ["CMD-SHELL", "agtool storage-report ontoportal_test || exit 1"] + start_period: 30s interval: 10s - timeout: 5s - retries: 5 + timeout: 10s + retries: 10 profiles: - ag