-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththree-node.yml
More file actions
149 lines (135 loc) · 3.72 KB
/
three-node.yml
File metadata and controls
149 lines (135 loc) · 3.72 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
networks:
regtest_network:
external: false
name: regtest_network
services:
orchestrator:
image: nchain/rnd-prototyping-regtest_orchestrator:v1.4
command: ['python3', 'run.py', '--port=9777']
# command: ['python3', 'run.py', '--port=9777', '--interval 10', '--approximately']
container_name: orchestrator
ports:
- "9777:9777"
environment:
- NODE_LIST=node1:18332:18332:8090:8090,node2:18502:18332:8091:8090,node3:18602:18332:8092:8090
depends_on:
node1:
condition: service_healthy
node2:
condition: service_healthy
node3:
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" # This is the RPC port
- "8090:8090" # This is the REST API port
expose:
- "18332"
- "18333"
- "8090"
volumes:
# bitcoin-data: store persistent data in a named volume;
# override the configuration file using a bind mount
- ./data/bitcoin.conf:/app/data/bitcoin.conf
- node1-data:/data
environment:
RPC_URL: http://localhost:18332
RPC_USER: bitcoin
RPC_PASSWORD: bitcoin
networks:
- regtest_network
node2:
container_name: node2
image: nchain/rnd-prototyping-bitcoin_regtest:v1.7
command: ['python3', 'run.py', '--datadir=/app/data', '--port=8090']
ports:
- "18502:18332"
- "8091:8090"
expose:
- "18332"
- "18333"
- "8091"
healthcheck:
test: ["CMD", "./bitcoin-cli", '--datadir=/app/data', "getinfo"]
volumes:
- ./data/bitcoin.conf:/app/data/bitcoin.conf
- node2-data:/data
environment:
RPC_URL: http://localhost:18332
RPC_USER: bitcoin
RPC_PASSWORD: bitcoin
networks:
- regtest_network
node3:
container_name: node3
image: nchain/rnd-prototyping-bitcoin_regtest:v1.7
command: ['python3', 'run.py', '--datadir=/app/data', '--port=8090']
ports:
- "18602:18332"
- "8092:8090"
expose:
- "18332"
- "18333"
- "8092"
healthcheck:
test: ["CMD", "./bitcoin-cli", '--datadir=/app/data', "getinfo"]
volumes:
- ./data/bitcoin.conf:/app/data/bitcoin.conf
- node3-data:/data
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
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"