-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (116 loc) · 2.79 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
110
111
112
113
114
115
116
117
118
119
120
121
122
version: "3.6"
services:
bootnode:
image: hyperledger/besu:latest
restart: "on-failure"
container_name: node0
volumes:
- ./log-config.xml:/node/log-config.toml
- ./node0/data:/node/data
- ./genesis.json:/node/genesis.json
- ./config.toml:/node/config.toml
entrypoint:
- /bin/bash
- -c
- |
/opt/besu/bin/besu \
--config-file=/node/config.toml \
--node-private-key-file=/node/data/key \
ports:
- 8545:8545/tcp
- 30303:30309/tcp
networks:
besu-tester:
ipv4_address: 172.16.239.11
node1:
image: hyperledger/besu:latest
restart: "on-failure"
container_name: node1
volumes:
- ./log-config.xml:/node/log-config.toml
- ./node1/data:/node/data
- ./genesis.json:/node/genesis.json
- ./config.toml:/node/config.toml
entrypoint:
- /bin/bash
- -c
- |
/opt/besu/bin/besu \
--config-file=/node/config.toml \
--node-private-key-file=/node/data/key \
depends_on:
- bootnode
ports:
- 8546:8545/tcp
- 30304:30309/tcp
networks:
besu-tester:
ipv4_address: 172.16.239.12
node2:
image: hyperledger/besu:latest
restart: "on-failure"
container_name: node2
volumes:
- ./log-config.xml:/node/log-config.toml
- ./node2/data:/node/data
- ./genesis.json:/node/genesis.json
- ./config.toml:/node/config.toml
entrypoint:
- /bin/bash
- -c
- |
/opt/besu/bin/besu \
--config-file=/node/config.toml \
--node-private-key-file=/node/data/key \
depends_on:
- bootnode
ports:
- 8547:8545/tcp
- 30305:30309/tcp
networks:
besu-tester:
ipv4_address: 172.16.239.13
node3:
image: hyperledger/besu:latest
restart: "on-failure"
container_name: node3
volumes:
- ./log-config.xml:/node/log-config.toml
- ./node3/data:/node/data
- ./genesis.json:/node/genesis.json
- ./config.toml:/node/config.toml
entrypoint:
- /bin/bash
- -c
- |
/opt/besu/bin/besu \
--config-file=/node/config.toml \
--node-private-key-file=/node/data/key \
depends_on:
- bootnode
ports:
- 8548:8545/tcp
- 30306:30309/tcp
networks:
besu-tester:
ipv4_address: 172.16.239.14
explorer:
container_name: besu-explorer
image: alethio/ethereum-lite-explorer
environment:
- APP_NODE_URL=http://localhost:8545
depends_on:
- bootnode
ports:
- 25000:80/tcp
networks:
besu-tester:
ipv4_address: 172.16.239.15
networks:
besu-tester:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.16.239.0/24
gateway: 172.16.239.1