forked from taikoxyz/simple-taiko-node
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
430 lines (420 loc) Β· 12.6 KB
/
docker-compose.yml
File metadata and controls
430 lines (420 loc) Β· 12.6 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
services:
# L2 deployer
surge-l2-deployer:
image: nethermind/surge-protocol:sha-93f0d57
container_name: surge-l2-deployer
pull_policy: always
volumes:
- ./deployer:/deployer
- ./deployment:/deployment
depends_on:
nethermind_execution_client:
condition: service_healthy
taiko_client_driver:
condition: service_started
taiko_client_proposer:
condition: service_started
entrypoint:
- /bin/sh
- -c
- /deployer/setup-surge-l2.sh
env_file:
- .env
environment:
L1_BRIDGE: ${BRIDGE}
L1_SIGNAL_SERVICE: ${SIGNAL_SERVICE}
L1_ERC1155_VAULT: ${ERC1155_VAULT}
L1_ERC20_VAULT: ${ERC20_VAULT}
L1_ERC721_VAULT: ${ERC721_VAULT}
L1_OWNER: ${L1_OWNER}
FORK_URL: http://l2-nethermind-execution-client:${L2_HTTP_PORT}
BROADCAST: ${BROADCAST}
FOUNDRY_PROFILE: layer2
networks:
- surge
extra_hosts:
- "host.docker.internal:host-gateway"
labels:
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
healthcheck:
test: ["CMD-SHELL", "bash -c 'test -f /app/deployments/setup_l2.json'"]
interval: 2s
timeout: 2s
retries: 15
start_period: 10s
profiles:
- l2-deployer
# L2 stack components
nethermind_execution_client:
image: nethermindeth/nethermind:v25.0.0-surge
container_name: l2-nethermind-execution-client
restart: unless-stopped
pull_policy: always
stop_grace_period: 3m
tty: true
volumes:
- ./execution-data:/data/surge
- ./static/jwtsecret:/tmp/jwt/jwtsecret
- ${CHAINSPEC_PATH_ON_HOST:-./static/hoodi/chainspec.json}:/chainspec.json
- ./script:/script
- ./NLog.config:/nethermind/NLog.config
networks:
- surge
ports:
- ${L2_NETWORK_DISCOVERY_PORT}:${L2_NETWORK_DISCOVERY_PORT}/tcp
- ${L2_NETWORK_DISCOVERY_PORT}:${L2_NETWORK_DISCOVERY_PORT}/udp
- ${L2_METRICS_PORT}:${L2_METRICS_PORT}
- ${L2_HTTP_PORT}:${L2_HTTP_PORT}
- ${L2_WS_PORT}:${L2_WS_PORT}
- ${L2_ENGINE_API_PORT}:${L2_ENGINE_API_PORT}
env_file:
- .env
environment:
TAIKO_INBOX: ${TAIKO_INBOX}
entrypoint:
- "/script/start-nethermind.sh"
extra_hosts:
- "host.docker.internal:host-gateway"
labels:
com.kurtosistech.custom.metrics_enabled: "true"
com.kurtosistech.custom.metrics_port: "${L2_METRICS_PORT}"
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
healthcheck:
test: ["CMD-SHELL", "bash -c 'echo > /dev/tcp/localhost/8547'"]
interval: 2s
timeout: 2s
retries: 15
start_period: 10s
profiles:
- driver
- proposer
- prover
- spammer
- blockscout
- l2-deployer
- relayer-l1
- relayer-l2
- relayer-api
taiko_client_driver:
image: nethermind/taiko-client:v25.1.1
container_name: l2-taiko-consensus-client
restart: unless-stopped
pull_policy: always
depends_on:
nethermind_execution_client:
condition: service_healthy
restart: true
volumes:
- ./execution-data:/data/surge
- ./static/jwtsecret:/tmp/jwt/jwtsecret
- ./script:/script
ports:
- 6060:6060
env_file:
- .env
environment:
TAIKO_INBOX: ${TAIKO_INBOX}
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint:
- /bin/sh
- -c
- "/script/start-driver.sh"
networks:
- surge
labels:
com.kurtosistech.custom.metrics_enabled: "true"
com.kurtosistech.custom.metrics_port: "6060"
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- driver
- proposer
- prover
- spammer
- blockscout
- l2-deployer
- relayer-l1
- relayer-l2
- relayer-api
taiko_client_proposer:
image: nethermind/taiko-client:v25.1.1
container_name: l2-taiko-proposer-client
restart: unless-stopped
pull_policy: always
depends_on:
nethermind_execution_client:
condition: service_healthy
restart: true
taiko_client_driver:
condition: service_started
volumes:
- ./execution-data:/data/taiko-nethermind
- ./static/jwtsecret:/tmp/jwt/jwtsecret
- ./script:/script
ports:
- 6061:6061
env_file:
- .env
environment:
TAIKO_INBOX: ${TAIKO_INBOX}
L1_SIGNAL_SERVICE: ${SIGNAL_SERVICE}
L1_BRIDGE: ${BRIDGE}
TAIKO_WRAPPER: ${TAIKO_WRAPPER}
FORCED_INCLUSION_STORE: ${FORCED_INCLUSION_STORE}
SURGE_PROPOSER_WRAPPER: ${SURGE_PROPOSER_WRAPPER}
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint:
- /bin/sh
- -c
- "/script/start-proposer.sh"
networks:
- surge
labels:
com.kurtosistech.custom.metrics_enabled: "true"
com.kurtosistech.custom.metrics_port: "6061"
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- proposer
- spammer
- l2-deployer
taiko_client_prover_relayer:
image: nethermind/taiko-client:v25.1.1
container_name: l2-taiko-prover-relayer-client
restart: unless-stopped
pull_policy: always
depends_on:
nethermind_execution_client:
condition: service_healthy
restart: true
taiko_client_driver:
condition: service_started
volumes:
- ./static/jwtsecret:/tmp/jwt/jwtsecret
- ./script:/script
ports:
- 6062:6062
env_file:
- .env
environment:
TAIKO_INBOX: ${TAIKO_INBOX}
SURGE_PROPOSER_WRAPPER: ${SURGE_PROPOSER_WRAPPER}
extra_hosts:
- "host.docker.internal:host-gateway"
entrypoint:
- /bin/sh
- -c
- "/script/start-prover-relayer.sh"
networks:
- surge
labels:
com.kurtosistech.custom.metrics_enabled: "true"
com.kurtosistech.custom.metrics_port: "6062"
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- prover
tx-spammer:
image: ethpandaops/spamoor:master
container_name: l2-tx-spammer
restart: unless-stopped
pull_policy: always
depends_on:
nethermind_execution_client:
condition: service_healthy
taiko_client_driver:
condition: service_started
taiko_client_proposer:
condition: service_started
volumes:
- ./static/spamoor:/config
ports:
- 8080:8080
entrypoint:
- ./spamoor-daemon
command:
- "--rpchost=http://l2-nethermind-execution-client:${L2_HTTP_PORT}"
- "--startup-spammer=/config/scenario-configs.yml"
- "--privkey=${PRIVATE_KEY}"
networks:
- surge
labels:
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- spammer
blockscout-postgres:
image: postgres:alpine
container_name: l2-blockscout-postgres
# Only set user if DOCKER_USER is explicitly provided (local dev), not in CI
user: "${DOCKER_USER:-}"
restart: unless-stopped
pull_policy: always
volumes:
- ./blockscout-postgres-data:/var/lib/postgresql
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
POSTGRES_DB: blockscout
POSTGRES_USER: postgres
POSTGRES_PASSWORD: MyPassword1!
PGDATA: /var/lib/postgresql/data
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- "postgres"
- "-c"
- "max_connections=1000"
networks:
- surge
labels:
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- blockscout
blockscout-verifer:
image: ghcr.io/blockscout/smart-contract-verifier:latest
container_name: l2-blockscout-verif
restart: unless-stopped
pull_policy: always
depends_on:
nethermind_execution_client:
condition: service_healthy
taiko_client_driver:
condition: service_started
blockscout-postgres:
condition: service_started
ports:
- ${VERIFIER_PORT}:${VERIFIER_PORT}
environment:
SMART_CONTRACT_VERIFIER__SERVER__HTTP__ADDR: 0.0.0.0:${VERIFIER_PORT}
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
APP_USER: app
extra_hosts:
- "host.docker.internal:host-gateway"
command:
- "./smart-contract-verifier-server"
networks:
- surge
labels:
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- blockscout
blockscout:
image: ghcr.io/blockscout/blockscout:latest
container_name: l2-blockscout
restart: unless-stopped
pull_policy: always
depends_on:
nethermind_execution_client:
condition: service_healthy
restart: true
taiko_client_driver:
condition: service_started
blockscout-postgres:
condition: service_started
blockscout-verifer:
condition: service_started
ports:
- ${BLOCKSCOUT_PORT}:${BLOCKSCOUT_PORT}
environment:
MICROSERVICE_SC_VERIFIER_URL: http://l2-blockscout-verif:${VERIFIER_PORT}/api
ECTO_USE_SSL: false
ETHEREUM_JSONRPC_HTTP_URL: http://${BLOCKSCOUT_L2_HOST}:${L2_HTTP_PORT}/
DATABASE_URL: postgresql://postgres:MyPassword1!@l2-blockscout-postgres:5432/blockscout
ETHEREUM_JSONRPC_VARIANT: nethermind
ETHEREUM_JSONRPC_TRACE_URL: http://${BLOCKSCOUT_L2_HOST}:${L2_HTTP_PORT}/
SUBNETWORK: Surge
API_V2_ENABLED: true
PORT: ${BLOCKSCOUT_PORT}
NETWORK: Surge
MICROSERVICE_SC_VERIFIER_TYPE: sc_verifier
INDEXER_DISABLE_PENDING_TRANSACTIONS_FETCHER: true
COIN: ETH
MICROSERVICE_SC_VERIFIER_ENABLED: true
SECRET_KEY_BASE: 56NtB48ear7+wMSf0IQuWDAAazhpb31qyc7GiyspBP2vh7t5zlCsF5QDv76chXeN
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
DISABLE_WEBAPP: true
ADMIN_PANEL_ENABLED: false
DISABLE_API:
API_V1_READ_METHODS_DISABLED:
API_V1_WRITE_METHODS_DISABLED:
CHAIN_TYPE:
BRIDGED_TOKENS_ENABLED:
API_GRAPHQL_MAX_COMPLEXITY:
RELEASE_VERSION: 8.1.1
BLOCKSCOUT_VERSION: v8.1.1
command:
- "/bin/sh"
- "-c"
- "bin/blockscout eval \"Elixir.Explorer.ReleaseTasks.create_and_migrate()\" && bin/blockscout start"
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- surge
labels:
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- blockscout
blockscout-frontend:
image: ghcr.io/blockscout/frontend:latest
container_name: l2-blockscout-frontend
restart: unless-stopped
pull_policy: always
depends_on:
nethermind_execution_client:
condition: service_healthy
taiko_client_driver:
condition: service_started
blockscout-postgres:
condition: service_started
blockscout-verifer:
condition: service_started
blockscout:
condition: service_started
ports:
- ${BLOCKSCOUT_FRONTEND_PORT}:${BLOCKSCOUT_FRONTEND_PORT}
environment:
PORT: ${BLOCKSCOUT_FRONTEND_PORT}
NEXT_PUBLIC_NETWORK_ICON: https://docs.surge.wtf/img/favicon.ico
NEXT_PUBLIC_NETWORK_ID: ${L2_CHAINID}
NEXT_PUBLIC_APP_PROTOCOL: http
HOSTNAME: 0.0.0.0
NEXT_PUBLIC_AD_BANNER_PROVIDER: none
NEXT_PUBLIC_HAS_BEACON_CHAIN: false
NEXT_PUBLIC_GAS_TRACKER_ENABLED: true
# NEXT_PUBLIC_DISABLE_EXCHANGE_RATES: true
NEXT_PUBLIC_NETWORK_NAME: Surge
NEXT_PUBLIC_APP_HOST: 127.0.0.1
NEXT_PUBLIC_API_PROTOCOL: http
NEXT_PUBLIC_API_HOST: ${BLOCKSCOUT_API_HOST}:${BLOCKSCOUT_PORT}
NEXT_PUBLIC_USE_NEXT_JS_PROXY: false
NEXT_PUBLIC_NETWORK_RPC_URL: http://l2-nethermind-execution-client:${L2_HTTP_PORT}
NEXT_PUBLIC_IS_TESTNET: true
NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL: ws
NEXT_PUBLIC_APP_PORT: ${BLOCKSCOUT_FRONTEND_PORT}
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE: validation
NEXT_PUBLIC_AD_TEXT_PROVIDER: none
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
NODE_VERSION: 22.11.0
YARN_VERSION: 1.22.22
ENVS_PRESET:
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- surge
labels:
com.kurtosistech.custom.logs_enabled: "true"
com.kurtosistech.custom.custom_network: "devnet"
profiles:
- blockscout
networks:
surge:
name: surge-network
external: true