Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ 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", "curl", "-f", "http://localhost:6060"] # Controlla l'endpoint metrics interno (6060)
interval: 30s
timeout: 10s
retries: 5
start_period: 60s # dà tempo all'execution client di avviarsi

node:
build:
context: .
dockerfile: ${CLIENT:-geth}/Dockerfile
restart: unless-stopped
depends_on:
- execution
execution:
condition: service_healthy # node parte SOLO quando execution è healthy
ports:
- "7545:8545" # RPC
- "9222:9222" # P2P TCP
Expand Down