-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
188 lines (176 loc) · 5.18 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
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
version: "3"
services:
geth-bootnode:
hostname: geth-bootnode
environment:
- nodekeyhex=08f0e1dee5c1b4645f3331a566009e41a4514b6cd28656d63d0449ecf812812b #Needs to be fix, so that the miners know the resulting enode id
build:
context: ./bootnode
args:
binary: geth-alltools-linux-amd64-1.8.12-37685930.tar.gz
ports:
- 30301:30301/udp
networks:
chainnet:
ipv4_address: 172.25.0.101 # The miners need to know the IP address later on
geth-dev-miner-1:
hostname: geth-dev-miner-1
depends_on:
- geth-bootnode
environment:
- address=0x8cc5a1a0802db41db826c2fcb72423744338dcb0 #derived from the private key which is passed in the args
- bootnodeId=76a8171707eca17647a47ca99ffd348927dfa60102792ea349a25d5192e61855be83b786e376276a306afcceea4ffd1c9c77e4370b417efc39f328a0d068004c #derived from the nodekeyhex of the bootnode
- bootnodeIp=172.25.0.101
build:
context: ./miner
args:
binary: geth-linux-amd64-1.8.12-37685930.tar.gz
privatekey: df504d175ae63abf209bad9dda965310d99559620550e74521a6798a41215f46 # Please don't do something like this in production, okay?
password: pass
container_name: geth-miner-1
ports:
- 8545:8545
volumes:
- eth-data-1:/root/.ethash
networks:
chainnet:
ipv4_address: 172.25.0.102 # The monitor needs to know this address
geth-dev-miner-2:
hostname: geth-dev-miner-2
depends_on:
- geth-bootnode
environment:
- address=0x3590aca93338b0721966a8d0c96ebf2c4c87c544 #derived from the private key which is passed in the args
- bootnodeId=76a8171707eca17647a47ca99ffd348927dfa60102792ea349a25d5192e61855be83b786e376276a306afcceea4ffd1c9c77e4370b417efc39f328a0d068004c #derived from the nodekeyhex of the bootnode
- bootnodeIp=172.25.0.101
build:
context: ./miner
args:
binary: geth-linux-amd64-1.8.12-37685930.tar.gz
privatekey: bc5b578e0dcb2dbf98dd6e5fe62cb5a28b84a55e15fc112d4ca88e1f62bd7c35
password: word
container_name: geth-miner-2
ports:
- 8546:8545
volumes:
- eth-data-2:/root/.ethash
networks:
chainnet:
ipv4_address: 172.25.0.104
geth-dev-miner-3:
hostname: geth-dev-miner-3
depends_on:
- geth-bootnode
environment:
- address=0x3590aca93338b0721966a8d0c96ebf2c4c87c544 #derived from the private key which is passed in the args
- bootnodeId=76a8171707eca17647a47ca99ffd348927dfa60102792ea349a25d5192e61855be83b786e376276a306afcceea4ffd1c9c77e4370b417efc39f328a0d068004c #derived from the nodekeyhex of the bootnode
- bootnodeIp=172.25.0.101
build:
context: ./node
args:
binary: geth-linux-amd64-1.8.12-37685930.tar.gz
privatekey: bc5b578e0dcb2dbf98dd6e5fe62cb5a28b84a55e15fc112d4ca88e1f62bd7c35
password: word
container_name: geth-miner-3
ports:
- 8547:8545
volumes:
- eth-data-3:/root/.ethash
networks:
chainnet:
ipv4_address: 172.25.0.110
geth-monitor-backend:
hostname: geth-monitor-backend
depends_on:
- geth-dev-miner-1
build:
context: ./monitor-backend
container_name: monitor-backend
networks:
chainnet:
geth-monitor-frontend:
hostname: geth-monitor-frontend
depends_on:
- geth-monitor-backend
build:
context: ./monitor-frontend
container_name: monitor-frontend
ports:
- 3000:3000
networks:
chainnet:
ipv4_address: 172.25.0.103
ganachecli:
image: trufflesuite/ganache-cli
ports:
- "8585:8585"
volumes:
- ./.ethereum_data:/ethereum_data
entrypoint:
- node
- ./build/cli.node.js
- -n
- -a # accounts to create
- '10' # param
- -p # change default port to avoid conflict with geth
- '8585'
- -b
- '5' # faster blocks for faster interactions and automated tests.
- -m
- 'robot robot robot robot robot robot robot robot robot robot robot robot' # Give mnemonic seed so you can sync funded accounts with metamask
- --db=/ethereum_data # saving db
# Remix IDE for smart-contract dev & debug
remixide:
ports:
- 8080:8080
build:
context: ./remixide
container_name: remixide
entrypoint:
- npm
- start
# PoA block explorer. Provided by Magicking
clixplorer:
container_name: clixplorer
build:
context: ./clixplorer
command: [nginx]
tty: true
stdin_open: true
volumes:
- .:/usr/share/nginx/html:ro
ports:
- 80:8001
truffle:
container_name: truffle
command: truffle compile --watch
build:
context: ./truffle
tty: true
stdin_open: true
volumes:
- ./smart-contracts/:/truffle/
mew:
container_name: mew
build:
context: ./mew
tty: true
stdin_open: true
#ipfs:
# image: ipfs/go-ipfs:latest
# volumes:
# - ./export:/export
# - ./data:/data/ipfs
# ports:
# - 4001:4001
# - 8080:8080
networks:
chainnet:
driver: bridge
ipam:
config:
- subnet: 172.25.0.0/24
volumes:
eth-data-1:
eth-data-2:
eth-data-3: