-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (40 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
41 lines (40 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
services:
execution:
build:
context: .
dockerfile: ${CLIENT:-geth}/Dockerfile
restart: unless-stopped
ports:
- "8545:8545" # RPC
- "8546:8546" # websocket
- "7301:6060" # metrics
- "30303:30303" # P2P TCP
- "30303:30303/udp" # P2P UDP
command: ["bash", "./execution-entrypoint"]
volumes:
- ${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:
condition: service_healthy # node parte SOLO quando execution è healthy
ports:
- "7545:8545" # RPC
- "9222:9222" # P2P TCP
- "9222:9222/udp" # P2P UDP
- "7300:7300" # metrics
- "6060:6060" # pprof
command: ["bash", "./op-node-entrypoint"]
env_file:
- ${NETWORK_ENV:-.env.mainnet} # Use .env.mainnet by default, override with .env.sepolia for testnet