From dece12e5557542f1acc508a76bd43873f73ce599 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Wed, 12 Feb 2025 14:01:23 +0100 Subject: [PATCH] make it invincible --- fuse.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fuse.yml b/fuse.yml index 6ff3d079..60ad5540 100644 --- a/fuse.yml +++ b/fuse.yml @@ -8,7 +8,7 @@ services: fuse-health-checker: depends_on: - fuse-nethermind - build: + build: context: ./check-health/ dockerfile: Dockerfile environment: @@ -18,16 +18,16 @@ services: volumes: - .:/repo:ro - fuse-nethermind-health:/health:rw - networks: + networks: - chains - + fuse-nethermind: image: fusenet/node:nethermind-1.25.4-v6.0.2 healthcheck: - test: ["CMD", "cat", "/health/status", "|", "grep", "-q", "online"] + test: ["CMD", "sh", "-c", "while read -r status; do [ \"$$status\" = \"online\" -o \"$$status\" = \"lagging\" ] && exit 0; done < /health/status; exit 1"] interval: 30s timeout: 1s - retries: 3 + retries: 1 expose: - "35045" - "8545"