-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
182 lines (175 loc) · 4.57 KB
/
Copy pathdocker-compose.yml
File metadata and controls
182 lines (175 loc) · 4.57 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
services:
ethereum:
platform: linux/amd64
image: ghcr.io/breadchaincoop/ethereum:latest
env_file:
- .env
ports:
- "8545:8545"
eigenlayer:
platform: linux/amd64
image: ghcr.io/breadchaincoop/eigenlayer:latest
depends_on:
ethereum:
condition: service_started
env_file:
- .env
volumes:
- ./config/.nodes:/root/.nodes
- ./config/config.example.json:/bls-middleware/contracts/docker/eigenlayer/config.json
signer:
image: ghcr.io/layr-labs/cerberus:0.0.2
platform: linux/amd64
depends_on:
eigenlayer:
condition: service_completed_successfully
ports:
- "${CERBERUS_METRICS_PORT:-9081}:${CERBERUS_METRICS_PORT:-9081}"
- "${CERBERUS_GRPC_PORT:-50051}:${CERBERUS_GRPC_PORT:-50051}"
environment:
- "METRICS_PORT=${CERBERUS_METRICS_PORT:-9081}"
env_file:
- .env
restart: unless-stopped
node-1:
build:
context: .
dockerfile: examples/counter/node/Dockerfile
pull_policy: always
platform: linux/amd64
depends_on:
eigenlayer:
condition: service_completed_successfully
ethereum:
condition: service_started
env_file:
- .env
environment:
- HTTP_RPC=http://ethereum:8545
- WS_RPC=ws://ethereum:8545
- AVS_DEPLOYMENT_PATH=/app/.nodes/avs_deploy.json
- STORAGE_DIR=/app/data
volumes:
- ./config/.nodes/operator_keys/testacc1.private.bls.key.json:/app/key.json:ro
- ./config/.nodes:/app/.nodes:ro
- ./config/public_router.json:/app/public_router.json:ro
- node-1-data:/app/data
command:
[
"--key-file",
"/app/key.json",
"--port",
"3001",
"--router",
"/app/public_router.json",
]
ports:
- "3001:3001"
restart: unless-stopped
node-2:
build:
context: .
dockerfile: examples/counter/node/Dockerfile
pull_policy: always
platform: linux/amd64
depends_on:
eigenlayer:
condition: service_completed_successfully
ethereum:
condition: service_started
env_file:
- .env
environment:
- HTTP_RPC=http://ethereum:8545
- WS_RPC=ws://ethereum:8545
- AVS_DEPLOYMENT_PATH=/app/.nodes/avs_deploy.json
- STORAGE_DIR=/app/data
volumes:
- ./config/.nodes/operator_keys/testacc2.private.bls.key.json:/app/key.json:ro
- ./config/.nodes:/app/.nodes:ro
- ./config/public_router.json:/app/public_router.json:ro
- node-2-data:/app/data
command:
[
"--key-file",
"/app/key.json",
"--port",
"3002",
"--router",
"/app/public_router.json",
]
ports:
- "3002:3002"
restart: unless-stopped
node-3:
build:
context: .
dockerfile: examples/counter/node/Dockerfile
pull_policy: always
platform: linux/amd64
depends_on:
eigenlayer:
condition: service_completed_successfully
ethereum:
condition: service_started
env_file:
- .env
environment:
- HTTP_RPC=http://ethereum:8545
- WS_RPC=ws://ethereum:8545
- AVS_DEPLOYMENT_PATH=/app/.nodes/avs_deploy.json
- STORAGE_DIR=/app/data
volumes:
- ./config/.nodes/operator_keys/testacc3.private.bls.key.json:/app/key.json:ro
- ./config/.nodes:/app/.nodes:ro
- ./config/public_router.json:/app/public_router.json:ro
- node-3-data:/app/data
command:
[
"--key-file",
"/app/key.json",
"--port",
"3003",
"--router",
"/app/public_router.json",
]
ports:
- "3003:3003"
restart: unless-stopped
router:
build:
context: .
dockerfile: examples/counter/router/Dockerfile
platform: linux/amd64
depends_on:
eigenlayer:
condition: service_completed_successfully
ethereum:
condition: service_started
node-1:
condition: service_started
node-2:
condition: service_started
node-3:
condition: service_started
env_file:
- .env
environment:
- HTTP_RPC=http://ethereum:8545
- WS_RPC=ws://ethereum:8545
- AVS_DEPLOYMENT_PATH=/app/.nodes/avs_deploy.json
- STORAGE_DIR=/app/data
volumes:
- ./config/.nodes:/app/.nodes:ro
- ./config/router_key.json:/app/router_key.json:ro
- router-data:/app/data
command: ["--key-file", "/app/router_key.json", "--port", "3000"]
ports:
- "4000:3000"
- "8080:8080"
restart: unless-stopped
volumes:
node-1-data:
node-2-data:
node-3-data:
router-data: