From a7fb036281493cf26657027ca2b57a81645c7452 Mon Sep 17 00:00:00 2001 From: benbierens Date: Thu, 7 Mar 2024 13:56:47 +0100 Subject: [PATCH] Health check that delays codex start by 3 seconds --- docker-compose.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 9a3f30b..cd45938 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -42,7 +42,8 @@ services: volumes: - ./codex-data:/datadir depends_on: - - geth + geth: + condition: service_healthy # Geth init geth-init: @@ -82,3 +83,8 @@ services: - ./geth-data:/data depends_on: - geth-init + healthcheck: + test: ["CMD", "sleep", "3"] + interval: 3s + timeout: 3s + retries: 1