From c0810d31897e784cb0bc05cad89cde4535783516 Mon Sep 17 00:00:00 2001 From: Agatha Date: Mon, 1 Jun 2026 12:01:50 +0000 Subject: [PATCH] fix(docker): add healthcheck to stellar-node and depends_on condition (#88) --- docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9f6f083..4636f33 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,7 +13,8 @@ services: - STELLAR_RPC_URL=http://stellar-node:8000 - STELLAR_NETWORK_PASSPHRASE=Standalone Network ; February 2021 depends_on: - - stellar-node + stellar-node: + condition: service_healthy command: bash stellar-node: @@ -23,6 +24,12 @@ services: environment: - NETWORK=local command: --local --enable-soroban-rpc + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8000/health"] + interval: 10s + timeout: 5s + retries: 10 + start_period: 30s volumes: cargo-cache: