-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
226 lines (213 loc) · 6.79 KB
/
docker-compose.yaml
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
version: '3.8'
services:
node1:
container_name: node1
image: bitcoinsv/bitcoin-sv:1.0.11
expose:
- "18332"
- "18333"
- "28332"
ports:
- "18332:18332"
- "28332:28332"
restart: unless-stopped
healthcheck:
test: [ "CMD", "/entrypoint.sh", "bitcoin-cli", "getinfo" ]
volumes:
- ./sv/bitcoin.conf:/data/bitcoin.conf
- regtest-data:/data
networks:
- regtest-stack
minerid:
container_name: minerid
image: bitcoinsv/minerid:1.1.1
environment:
NODE_CONFIG: '{
"bitcoin": {
"rpcHost":"node1"
},
"network": "regtest"
}'
ports:
- "9012:9002"
restart: unless-stopped
depends_on:
- node1
volumes:
- minerid:/root/.keystore
- minerid:/root/.minerid-client
command: ["/bin/sh", "-c", "npm run cli -- generateminerid --name testMiner; npm start;"]
networks:
- regtest-stack
headersv:
image: bitcoinsv/block-headers-client:1.0.2
container_name: headersv
volumes:
- headersv-data:/tmp/jcl
environment:
- SPRING_PROFILES_ACTIVE=bsv-regtest
- HEADERSV_NETWORK_MINPEERS=1
- HEADERSV_NETWORK_MAXPEERS=5
- HEADERSV_NETWORK_PEERS=node1
- HEADERSV_NETWORK_PORT=18333
- _JAVA_OPTIONS=-XX:+UseContainerSupport -XX:MaxRAMPercentage=75 -Dlogging.level.ROOT=DEBUG
ports:
- 8001:8080
depends_on:
- node1
networks:
- regtest-stack
mapi_db:
container_name: mapi_db
image: postgres:12
environment:
POSTGRES_PASSWORD: postgres
volumes:
- mapi-volume:/var/lib/postgresql/data
ports:
- "5433:5432"
networks:
- regtest-stack
mapi:
container_name: mapi
image: bitcoinsv/mapi:1.3.0
environment:
- ConnectionStrings__DBConnectionString=Server=mapi_db;Port=5432;User Id=merchant;Password=merchant;Database=merchant_gateway;
- ConnectionStrings__DBConnectionStringDDL=Server=mapi_db;Port=5432;User Id=merchantddl;Password=merchant;Database=merchant_gateway;
- ConnectionStrings__DBConnectionStringMaster=Server=mapi_db;Port=5432;User Id=postgres;Password=postgres;Database=merchant_gateway;
- AppSettings__QuoteExpiryMinutes=10
- AppSettings__ZmqConnectionTestIntervalSec=60
- AppSettings__RestAdminAPIKey=apikey
- AppSettings__DeltaBlockHeightForDoubleSpendCheck=144
- AppSettings__CleanUpTxAfterDays=3
- AppSettings__CleanUpTxPeriodSec=3600
- AppSettings__CheckFeeDisabled=false
- AppSettings__WifPrivateKey=
- AppSettings__DSHostBanTimeSec=300
- AppSettings__DSMaxNumOfTxQueries=5
- AppSettings__DSCachedTxRequestsCooldownPeriodSec=300
- AppSettings__DSMaxNumOfUnknownTxQueries=100
- AppSettings__DSUnknownTxQueryCooldownPeriodSec=300
- AppSettings__DSScriptValidationTimeoutSec=5
- AppSettings__EnableHTTP=true
- AppSettings__Notification__NotificationIntervalSec=60
- AppSettings__Notification__InstantNotificationsTasks=2
- AppSettings__Notification__InstantNotificationsQueueSize=1000
- AppSettings__Notification__MaxNotificationsInBatch=100
- AppSettings__Notification__SlowHostThresholdInMs=1000
- AppSettings__Notification__InstantNotificationsSlowTaskPercentage=20
- AppSettings__Notification__NoOfSavedExecutionTimes=10
- AppSettings__Notification__NotificationsRetryCount=10
- AppSettings__Notification__SlowHostResponseTimeoutMS=1000
- AppSettings__Notification__FastHostResponseTimeoutMS=2000
- AppSettings__MinerIdServer__Url=http://minerid:9002/minerid
- AppSettings__MinerIdServer__Alias=testMiner
- AppSettings__MinerIdServer__Authentication=
- ASPNETCORE_ENVIRONMENT=PRODUCTION
- ASPNETCORE_URLS=https://+:443;http://+:80
- ASPNETCORE_HTTPS_PORT=9014
- ASPNETCORE_Kestrel__Certificates__Default__Password=pass
- ASPNETCORE_Kestrel__Certificates__Default__Path=/config/localhost.pfx
ports:
- "9014:80"
restart: unless-stopped
volumes:
- ./mapi/config:/config/:ro
depends_on:
- node1
- minerid
- mapi_db
networks:
- regtest-stack
mapi_add_node:
container_name: mapi_add_node
image: curlimages/curl:latest
volumes:
- ./mapi/config/add_node.sh:/add_node.sh:ro
entrypoint: [/add_node.sh]
restart: on-failure
depends_on:
- mapi
networks:
- regtest-stack
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-stack
dash:
container_name: dash
image: jwahab/regtest-dashboard:latest
environment:
DASH_PORT: 3000
SV_HOST: node1
SV_PORT: 18332
SV_USER: bitcoin
SV_PASSWORD: bitcoin
ports:
- "3010:3000"
restart: unless-stopped
depends_on:
- node1
networks:
- regtest-stack
peerchannels-db:
container_name: peerchannels-db
image: postgres
volumes:
- peerchannels-volume:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
networks:
- regtest-stack
peerchannels:
container_name: peerchannels
image: bitcoinsv/spvchannels:1.1.0-fork
command: -startup
ports:
- "5010:443"
- "5009:25009"
links:
- peerchannels-db:peerchannels-db
depends_on:
- peerchannels-db
volumes:
- ./peerchannels/:/config/:ro
environment:
- AppConfiguration:DBConnectionString=Server=peerchannels-db;Port=5432;User Id=channels;Password=channels;Database=channels;
- AppConfiguration:DBConnectionStringDDL=Server=peerchannels-db;Port=5432;User Id=channelsddl;Password=channels;Database=channels;
- AppConfiguration:DBConnectionStringMaster=Server=peerchannels-db;Port=5432;User Id=postgres;Password=postgres;Database=channels;
- AppConfiguration:NotificationTextNewMessage=New message arrived
- AppConfiguration:MaxMessageContentLength=65536
- AppConfiguration:ChunkedBufferSize=1024
- AppConfiguration:TokenSize=64
- AppConfiguration:CacheSize=1048576
- AppConfiguration:CacheSlidingExpirationTime=60
- AppConfiguration:CacheAbsoluteExpirationTime=600
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_NPGSQLLOGMANAGER=False
- ASPNETCORE_URLS=https://+:443;http://+:25009
- ASPNETCORE_HTTPS_PORT=5010
- ASPNETCORE_Kestrel__Certificates__Default__Password=devkey
- ASPNETCORE_Kestrel__Certificates__Default__Path=/config/devkey.pfx
networks:
- regtest-stack
volumes:
minerid:
external: false
regtest-data:
mapi-volume:
peerchannels-volume:
headersv-data:
networks:
regtest-stack:
name: regtest-stack