forked from daniellehrner/besu-cl-clients
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-nimbus.yml
39 lines (39 loc) · 1.21 KB
/
docker-compose-nimbus.yml
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
version: '3.4'
services:
besu_node:
image: hyperledger/besu:latest
command: ["--network=sepolia",
"--data-path=/opt/besu/data/data",
"--data-storage-format=BONSAI",
"--host-allowlist=*",
"--sync-mode=X_CHECKPOINT",
"--rpc-http-enabled",
"--rpc-http-cors-origins=*",
"--fast-sync-min-peers=1",
"--rpc-http-api=ADMIN,ETH,NET,WEB3",
"--engine-host-allowlist=*",
"--engine-jwt-secret=/secret/token.txt"]
volumes:
- ./secret:/secret
- ./data/besu:/opt/besu/data
ports:
# Map the p2p port(30303) and RPC HTTP port(8545)
- "8545:8545"
- "30303:30303/tcp"
- "30303:30303/udp"
nimbus_node:
image: statusim/nimbus-eth2:amd64-latest
command: ["--network=sepolia",
"--data-dir=/opt/nimbus/data",
"--web3-url=http://besu_node:8551",
"--jwt-secret=/secret/token.txt"]
volumes:
- ./secret:/secret
- ./data/nimbus:/opt/nimbus/data
depends_on:
- besu_node
ports:
# Map the p2p port(9000) and REST API port(5051)
- "9000:9000/tcp"
- "9000:9000/udp"
- "5051:5051"