From e5c3cd7e2396c205580682915d4d9a3cd4992d79 Mon Sep 17 00:00:00 2001 From: hiimpoop <142839027+hiimpoop@users.noreply.github.com> Date: Sat, 24 Jan 2026 23:30:43 +0100 Subject: [PATCH] Update docker-compose.yml Added Docker healthchecks so the execution and node services are marked healthy only after their HTTP endpoints respond, improving reliability for local setups and CI. --- docker-compose.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index fc7cebe1..e623cbde 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,13 @@ services: - ${HOST_DATA_DIR}:/data env_file: - ${NETWORK_ENV:-.env.mainnet} # Use .env.mainnet by default, override with .env.sepolia for testnet + healthcheck: + test: ["CMD-SHELL", "wget -qO- http://localhost:6060/debug/pprof/ > /dev/null 2>&1 || exit 1"] + interval: 30s + timeout: 5s + retries: 6 + start_period: 60s + node: build: context: . @@ -31,3 +38,9 @@ services: command: ["bash", "./op-node-entrypoint"] env_file: - ${NETWORK_ENV:-.env.mainnet} # Use .env.mainnet by default, override with .env.sepolia for testnet + healthcheck: + test: ["CMD-SHELL", "wget -qO- http://localhost:6060/debug/pprof/ > /dev/null 2>&1 || exit 1"] + interval: 30s + timeout: 5s + retries: 6 + start_period: 60s