From 54a0d4e5f6044db58d48da90d37c77d978d6ceb2 Mon Sep 17 00:00:00 2001 From: Sebastian <379651+czarly@users.noreply.github.com> Date: Wed, 12 Feb 2025 13:08:53 +0100 Subject: [PATCH] add a status --- fuse.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fuse.yml b/fuse.yml index 46bdc9cd..6ff3d079 100644 --- a/fuse.yml +++ b/fuse.yml @@ -6,6 +6,8 @@ version: '3.1' services: fuse-health-checker: + depends_on: + - fuse-nethermind build: context: ./check-health/ dockerfile: Dockerfile @@ -21,6 +23,11 @@ services: fuse-nethermind: image: fusenet/node:nethermind-1.25.4-v6.0.2 + healthcheck: + test: ["CMD", "cat", "/health/status", "|", "grep", "-q", "online"] + interval: 30s + timeout: 1s + retries: 3 expose: - "35045" - "8545" @@ -32,6 +39,7 @@ services: - fuse-nethermind-keystore:/nethermind/keystore - fuse-nethermind-logs:/nethermind/logs - fuse-nethermind-db:/nethermind/nethermind_db + - fuse-nethermind-health:/health:ro - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro environment: