-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
109 lines (104 loc) · 2.98 KB
/
docker-compose.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
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
version: "3.8"
services:
validator1:
image: hyperledger/besu:22.4.2
container_name: validator1
networks:
besu-network:
ipv4_address: 172.28.0.2
command: >
--data-path=/opt/besu/data
--genesis-file=/opt/besu/config/genesis.json
--network-id=1337
--rpc-http-enabled
--rpc-http-host=0.0.0.0
--host-allowlist=*
--sync-mode=FULL
--node-private-key-file=/opt/besu/data/key
--rpc-http-api=ETH,NET,WEB3,ADMIN
--p2p-host=172.28.0.2
--p2p-port=30303
volumes:
- ./networkFiles/genesis.json:/opt/besu/config/genesis.json
- ./networkFiles/0x3f3c2645815f59857b0f7507ccb001769f65cc54:/opt/besu/data
ports:
- "8541:8545" # RPC HTTP
- "30303:30303" # P2P
validator2:
image: hyperledger/besu:22.4.2
container_name: validator2
networks:
besu-network:
ipv4_address: 172.28.0.3
command: >
--data-path=/opt/besu/data
--genesis-file=/opt/besu/config/genesis.json
--network-id=1337
--rpc-http-enabled
--rpc-http-host=0.0.0.0
--host-allowlist=*
--sync-mode=FULL
--node-private-key-file=/opt/besu/data/key
--rpc-http-api=ETH,NET,WEB3,ADMIN
--p2p-host=172.28.0.3
--p2p-port=30303
volumes:
- ./networkFiles/genesis.json:/opt/besu/config/genesis.json
- ./networkFiles/0x4eb2d1160dd181d354c4065f128c2218feb19fa2:/opt/besu/data
ports:
- "8542:8545"
- "30304:30303"
validator3:
image: hyperledger/besu:22.4.2
container_name: validator3
networks:
besu-network:
ipv4_address: 172.28.0.4
command: >
--data-path=/opt/besu/data
--genesis-file=/opt/besu/config/genesis.json
--network-id=1337
--rpc-http-enabled
--rpc-http-host=0.0.0.0
--host-allowlist=*
--sync-mode=FULL
--node-private-key-file=/opt/besu/data/key
--rpc-http-api=ETH,NET,WEB3,ADMIN
--p2p-host=172.28.0.4
--p2p-port=30303
volumes:
- ./networkFiles/genesis.json:/opt/besu/config/genesis.json
- ./networkFiles/0x87401b92fce9cf00015e4cf38d6db05f6003088c:/opt/besu/data
ports:
- "8543:8545"
- "30305:30303"
validator4:
image: hyperledger/besu:22.4.2
container_name: validator4
networks:
besu-network:
ipv4_address: 172.28.0.5
command: >
--data-path=/opt/besu/data
--genesis-file=/opt/besu/config/genesis.json
--network-id=1337
--rpc-http-enabled
--rpc-http-host=0.0.0.0
--host-allowlist=*
--sync-mode=FULL
--node-private-key-file=/opt/besu/data/key
--rpc-http-api=ETH,NET,WEB3,ADMIN
--p2p-host=172.28.0.5
--p2p-port=30303
volumes:
- ./networkFiles/genesis.json:/opt/besu/config/genesis.json
- ./networkFiles/0xdd47bca95d975b0f4e3a8f577c37cf5c872d0d39:/opt/besu/data
ports:
- "8544:8545"
- "30306:30303"
networks:
besu-network:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16