-
Notifications
You must be signed in to change notification settings - Fork 260
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (69 loc) · 1.96 KB
/
docker-compose.yml
File metadata and controls
73 lines (69 loc) · 1.96 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "3.8"
services:
# Local DA service for development
local-da:
build:
context: ../../
dockerfile: tools/local-da/Dockerfile
ports:
- "7980:7980"
environment:
- DA_NAMESPACE=00000000000000000000000000000000000000000000000000000000deadbeef
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
read_only: true
tmpfs:
- /tmp
# Example gRPC execution service (replace with your implementation)
# execution-service:
# image: your-execution-service:latest
# ports:
# - "50051:50051"
# environment:
# - GRPC_PORT=50051
# healthcheck:
# test: ["CMD", "grpc_health_probe", "-addr=:50051"]
# interval: 5s
# timeout: 3s
# retries: 5
# Evolve node with gRPC execution client
evolve-grpc:
build:
context: ../../
dockerfile: apps/grpc/Dockerfile
depends_on:
local-da:
condition: service_started
# execution-service:
# condition: service_healthy
ports:
- "26656:26656" # P2P
- "26657:26657" # RPC
- "26660:26660" # Prometheus metrics
environment:
- DA_ADDRESS=http://local-da:7980
- DA_NAMESPACE=00000000000000000000000000000000000000000000000000deadbeef
- GRPC_EXECUTOR_URL=http://host.docker.internal:50051 # Change to your execution service
volumes:
- evolve-data:/home/ev-node/.evgrpc
command:
- start
- --root-dir=/home/ev-node/.evgrpc
- --da.address=${DA_ADDRESS:-http://local-da:7980}
- --da.namespace=${DA_NAMESPACE}
- --grpc-executor-url=${GRPC_EXECUTOR_URL:-http://host.docker.internal:50051}
- --p2p.listen-address=/ip4/0.0.0.0/tcp/26656
- --rpc.laddr=tcp://0.0.0.0:26657
- --instrumentation.prometheus=true
- --instrumentation.prometheus-listen-addr=0.0.0.0:26660
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
read_only: true
tmpfs:
- /tmp
volumes:
evolve-data: