-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfive-node.yml
More file actions
202 lines (190 loc) · 5.06 KB
/
five-node.yml
File metadata and controls
202 lines (190 loc) · 5.06 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
networks:
regtest_network:
external: false
name: regtest_network
services:
orchestrator:
image: nchain/rnd-prototyping-regtest_orchestrator:v1.4
command: ['python3', 'run.py', '--port=9777']
container_name: orchestrator
ports:
- "9777:9777"
environment:
- NODE_LIST=node1:18332:18332:8090:8090,node2:18502:18332:8091:8090,node3:18602:18332:8092:8090,node4:18702:18332:8093:8090,node5:18802:18332:8094:8090
depends_on:
node1:
condition: service_healthy
node2:
condition: service_healthy
node3:
condition: service_healthy
node4:
condition: service_healthy
node5:
condition: service_healthy
networks:
- regtest_network
node1:
image: nchain/rnd-prototyping-bitcoin_regtest:v1.7
command: ['python3', 'run.py', '--datadir=/app/data', '--port=8090']
container_name: node1
healthcheck:
test: [ "CMD", "./bitcoin-cli", '--datadir=/app/data', "getinfo" ]
ports:
- "18332:18332"
- "8090:8090"
expose:
- "18332"
- "18333"
- "8090"
volumes:
- node1-data:/app/data
- ./data/bitcoin.conf:/app/data/bitcoin.conf
environment:
RPC_URL: http://localhost:18332
RPC_USER: bitcoin
RPC_PASSWORD: bitcoin
networks:
- regtest_network
node2:
image: nchain/rnd-prototyping-bitcoin_regtest:v1.7
command: ['python3', 'run.py', '--datadir=/app/data', '--port=8090']
container_name: node2
healthcheck:
test: [ "CMD", "./bitcoin-cli", '--datadir=/app/data', "getinfo" ]
ports:
- "18502:18332"
- "8091:8090"
expose:
- "18332"
- "18333"
- "8090"
volumes:
- node2-data:/app/data
- ./data/bitcoin.conf:/app/data/bitcoin.conf
environment:
RPC_URL: http://localhost:18332
RPC_USER: bitcoin
RPC_PASSWORD: bitcoin
networks:
- regtest_network
node3:
image: nchain/rnd-prototyping-bitcoin_regtest:v1.7
command: ['python3', 'run.py', '--datadir=/app/data', '--port=8090']
container_name: node3
healthcheck:
test: [ "CMD", "./bitcoin-cli", '--datadir=/app/data', "getinfo" ]
ports:
- "18602:18332"
- "8092:8090"
expose:
- "18332"
- "18333"
- "8090"
volumes:
- node3-data:/app/data
- ./data/bitcoin.conf:/app/data/bitcoin.conf
environment:
RPC_URL: http://localhost:18332
RPC_USER: bitcoin
RPC_PASSWORD: bitcoin
networks:
- regtest_network
node4:
image: nchain/rnd-prototyping-bitcoin_regtest:v1.7
command: ['python3', 'run.py', '--datadir=/app/data', '--port=8090']
container_name: node4
healthcheck:
test: [ "CMD", "./bitcoin-cli", '--datadir=/app/data', "getinfo" ]
ports:
- "18702:18332"
- "8093:8090"
expose:
- "18332"
- "18333"
- "8090"
volumes:
- node4-data:/app/data
- ./data/bitcoin.conf:/app/data/bitcoin.conf
environment:
RPC_URL: http://localhost:18332
RPC_USER: bitcoin
RPC_PASSWORD: bitcoin
networks:
- regtest_network
node5:
image: nchain/rnd-prototyping-bitcoin_regtest:v1.7
command: ['python3', 'run.py', '--datadir=/app/data', '--port=8090']
container_name: node5
healthcheck:
test: [ "CMD", "./bitcoin-cli", '--datadir=/app/data', "getinfo" ]
ports:
- "18802:18332"
- "8094:8090"
expose:
- "18332"
- "18333"
- "8090"
volumes:
- node5-data:/app/data
- ./data/bitcoin.conf:/app/data/bitcoin.conf
environment:
RPC_URL: http://localhost:18332
RPC_USER: bitcoin
RPC_PASSWORD: bitcoin
networks:
- regtest_network
# This will need replacing as not ARM compatible - on hold until UI resource available
node-explorer:
container_name: explorer
image: jwahab/woc-explorer:latest
environment:
PORT: "8080"
expose:
- "8080"
ports:
- "8080:8080"
restart: unless-stopped
depends_on:
- node1
networks:
- regtest_network
dashboard:
container_name: regtest_dashboard
image: nchain/rnd-prototyping-regtest_dashboard:v1.3
environment:
ENVIRONMENT: "deployment"
ACCESS_TYPE: "INTERNAL"
ports:
- "3000:3000"
depends_on:
node1:
condition: service_healthy
node2:
condition: service_healthy
node3:
condition: service_healthy
node4:
condition: service_healthy
node5:
condition: service_healthy
networks:
- regtest_network
volumes:
- ./dashboard/config.js:/app/public/config.js
volumes:
node1-data:
labels:
com.nchain.description: "Bitcoin node 1 data"
node2-data:
labels:
com.nchain.description: "Bitcoin node 2 data"
node3-data:
labels:
com.nchain.description: "Bitcoin node 3 data"
node4-data:
labels:
com.nchain.description: "Bitcoin node 4 data"
node5-data:
labels:
com.nchain.description: "Bitcoin node 5 data"