-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yaml
510 lines (484 loc) · 20.2 KB
/
docker-compose.dev.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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
name: sovryn-nbte-bridge
services:
postgres:
image: bridge-postgres:latest
build:
context: ./docker/postgres
restart: always
volumes:
# Using named volume for db data to allow automatic removal with docker compose down -v
# This does not work for bind mounts (i.e. volumes that are not managed by docker like initsql)
- postgres:/var/lib/postgresql/data
- ./docker/postgres/initsql:/docker-entrypoint-initdb.d
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports:
# VERY IMPORTANT: no connections outside localhost
- 127.0.0.1:65432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bridge1 -d bridge1 -h postgres"]
interval: 1s
timeout: 30s
start_period: 3s
retries: 10
bitcoind:
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
stop_grace_period: 5m
image: polarlightning/bitcoind:26.0
hostname: bitcoind
command: >-
bitcoind -server=1 -regtest=1
-rpcauth=polaruser:5e5e98c21f5c814568f8b55d83b23c1c$$066b03f92df30b11de8e4b1b1cd5b1b4281aa25205bd57df9be82caf97a05526
-debug=1 -zmqpubrawblock=tcp://0.0.0.0:28334
-zmqpubrawtx=tcp://0.0.0.0:28335 -zmqpubhashblock=tcp://0.0.0.0:28336
-txindex=1 -dnsseed=0 -upnp=0 -rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0
-rpcport=18443 -rest -listen=1 -listenonion=0 -fallbackfee=0.0002
-blockfilterindex=1 -peerblockfilters=1
healthcheck:
test: [
"CMD",
"bitcoin-cli",
"-chain=regtest",
"-rpcuser=polaruser",
"-rpcpassword=polarpass",
"getblockchaininfo"
]
interval: 2s
volumes:
- ./volumes/bitcoind/bitcoind:/home/bitcoin/.bitcoin
ports:
- '18443:18443'
- '19444:18444'
- '28334:28334'
- '29335:28335'
hardhat:
image:
bridge_hardhat:latest
build:
context: ./bridge_contracts/
environment:
- NODE1_ADDRESS=0x4091663B0a7a14e35Ff1d6d9d0593cE15cE7710a
- NODE2_ADDRESS=0x09dcD91DF9300a81a4b9C85FDd04345C3De58F48
- NODE3_ADDRESS=0xA40013a058E70664367c515246F2560B82552ACb
- USER_ADDRESS=0xBcd4042DE499D14e55001CcbB24a551F3b954096 # Hardhat Account 10
- INTEGRATION_TEST=${INTEGRATION_TEST:-}
ports:
- 127.0.0.1:18545:8545
healthcheck:
test: ["CMD", "npx", "hardhat", "--network", "localhost", "verify-started"]
interval: 4s
timeout: 30s
retries: 10
start_period: 2s
ord:
image:
bridge-ord:latest
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
build:
context: ./docker/ord/
volumes:
- ./volumes/ord:/home/ord/data
command: >-
ord
--bitcoin-rpc-username polaruser
--bitcoin-rpc-password polarpass
--bitcoin-rpc-url bitcoind:18443
--chain regtest
--index-runes
--data-dir /home/ord/data
server
--http
--http-port 80
--polling-interval ${ORD_POLLING_INTERVAL:-1s}
depends_on:
bitcoind:
condition: service_healthy
ports:
- 127.0.0.1:3080:80
alice-bridge:
image: bridge_node:latest
build:
context: bridge_node
restart: always
depends_on:
postgres:
condition: service_healthy
hardhat:
condition: service_started
alice-tap:
condition: service_started
ports:
- 127.0.0.1:8181:8080
# TODO: needs to be added later, this does not work without pyramid
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:6543/health"]
# interval: 120s
# timeout: 1s
volumes:
- ./volumes/lnd/alice-lnd:/var/bridge/lnd
- ./volumes/tapd/alice-tap:/var/bridge/tapd
# These need to be shared and created once
# - ./secrets/certs/ca-key.pem:/srv/bridge_backend/certs/ca-key.pem
# - ./secrets/certs/ca-cert.pem:/srv/bridge_backend/certs/ca-cert.pem
labels:
- "node.type=bridge"
- "traefik.http.routers.alice-bridge.rule=PathPrefix(`/api/`)"
- "traefik.http.services.alice-bridge.loadbalancer.server.port=8080"
- "traefik.enable=true"
environment:
# NOTE: the private keys and other secrets are supposed to be here -- they are not used in the real world, only regtest. Don't report them.
- BRIDGE_NODE_ID=alice-node
- BRIDGE_HOSTNAME=alice-bridge
- BRIDGE_LEADER_NODE_ID=alice-node
- BRIDGE_DB_URL=postgresql://bridge1:a5f83ab52f2c6c8d0a31e99c@postgres:5432/bridge1
- LOG_LEVEL=DEBUG
- BRIDGE_ACCESS_CONTROL_CONTRACT_ADDRESS=0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9
- BRIDGE_EVM_PRIVATE_KEY=0x9a9a640da1fc0181e43a9ea00b81878f26e1678e3e246b25bd2835783f2be181
# ^-- address 0x4091663B0a7a14e35Ff1d6d9d0593cE15cE7710a
- BRIDGE_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_EVM_BRIDGE_CONTRACT_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
- BRIDGE_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_PEERS=alice-node@alice-bridge:5000,bob-node@bob-bridge:5000
- BRIDGE_BTC_NETWORK=regtest
- BRIDGE_BTC_RPC_URL=http://polaruser:polarpass@bitcoind:18443
# Messengers from environ, allows testing them...
- BRIDGE_DISCORD_WEBHOOK_URL=${BRIDGE_DISCORD_WEBHOOK_URL:-}
- BRIDGE_SLACK_WEBHOOK_URL=${BRIDGE_SLACK_WEBHOOK_URL:-}
- BRIDGE_SLACK_WEBHOOK_CHANNEL=${BRIDGE_SLACK_WEBHOOK_CHANNEL:-}
# Taproot Assets
- BRIDGE_TAP_HOST=alice-tap:8089
- BRIDGE_TAP_MACAROON_PATH=/var/bridge/tapd/data/regtest/admin.macaroon
- BRIDGE_TAP_TLS_CERT_PATH=/var/bridge/tapd/tls.cert
# RUNES
# TODO: we use the same keys as tap bridge. Might cause problems or not.
# RUNES COMMON
- BRIDGE_RUNES_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_RUNES_RUNE_BRIDGE_CONTRACT_ADDRESS=0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e
- BRIDGE_RUNES_EVM_DEFAULT_START_BLOCK=1
- BRIDGE_RUNES_ORD_API_URL=http://ord:80
- BRIDGE_RUNES_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_RUNES_TO_EVM_FEE_PERCENTAGE_DECIMAL=0
- BRIDGE_RUNES_BTC_NUM_REQUIRED_SIGNERS=2
- BRIDGE_RUNES_BTC_BASE_DERIVATION_PATH=m/13/0/0
- BRIDGE_SECRET_RUNES_BTC_MASTER_XPUBS=tpubD6NzVbkrYhZ4WokHnVXX8CVBt1S88jkmeG78yWbLxn7Wd89nkNDe2J8b6opP4K38mRwXf9d9VVN5uA58epPKjj584R1rnDDbk6oHUD1MoWD,tpubD6NzVbkrYhZ4WpZfRZip3ALqLpXhHUbe6UyG8iiTzVDuvNUyysyiUJWejtbszZYrDaUM8UZpjLmHyvtV7r1QQNFmTqciAz1fYSYkw28Ux6y,tpubD6NzVbkrYhZ4WQZnWqU8ieBsujhoZKZLF6wMvTApJ4ZiGmipk481DyM2su3y5BDeB9fFLwSmmmsGDGJum79he2fnuQMnpWhe3bGir7Mf4uS
# RUNES NODE-SPECIFIC
- BRIDGE_RUNES_BTC_RPC_WALLET_URL=http://polaruser:polarpass@bitcoind:18443/wallet/alice-runes
- BRIDGE_SECRET_RUNES_EVM_PRIVATE_KEY=0x9a9a640da1fc0181e43a9ea00b81878f26e1678e3e246b25bd2835783f2be181
- BRIDGE_SECRET_RUNES_BTC_MASTER_XPRIV=tprv8ZgxMBicQKsPdLiVtqrvinq5JyvByQZs4xWMgzZ3YWK7ndu27yQ3qoWivh8cgdtB3bKuYKWRKhaEvtykaFCsDCB7akNdcArjgrCnFhuDjmV
# RUNESBOB COMMON
- BRIDGE_RUNESBOB_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_RUNESBOB_RUNE_BRIDGE_CONTRACT_ADDRESS=0x9A676e781A523b5d0C0e43731313A708CB607508
- BRIDGE_RUNESBOB_EVM_DEFAULT_START_BLOCK=1
- BRIDGE_RUNESBOB_ORD_API_URL=http://ord:80
- BRIDGE_RUNESBOB_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_RUNESBOB_TO_EVM_FEE_PERCENTAGE_DECIMAL=0
- BRIDGE_RUNESBOB_BTC_NUM_REQUIRED_SIGNERS=2
- BRIDGE_RUNESBOB_BTC_BASE_DERIVATION_PATH=m/26/0/0
- BRIDGE_SECRET_RUNESBOB_BTC_MASTER_XPUBS=tpubD6NzVbkrYhZ4WokHnVXX8CVBt1S88jkmeG78yWbLxn7Wd89nkNDe2J8b6opP4K38mRwXf9d9VVN5uA58epPKjj584R1rnDDbk6oHUD1MoWD,tpubD6NzVbkrYhZ4WpZfRZip3ALqLpXhHUbe6UyG8iiTzVDuvNUyysyiUJWejtbszZYrDaUM8UZpjLmHyvtV7r1QQNFmTqciAz1fYSYkw28Ux6y,tpubD6NzVbkrYhZ4WQZnWqU8ieBsujhoZKZLF6wMvTApJ4ZiGmipk481DyM2su3y5BDeB9fFLwSmmmsGDGJum79he2fnuQMnpWhe3bGir7Mf4uS
# RUNESBOB NODE-SPECIFIC
- BRIDGE_RUNESBOB_BTC_RPC_WALLET_URL=http://polaruser:polarpass@bitcoind:18443/wallet/alice-runesbob
- BRIDGE_SECRET_RUNESBOB_EVM_PRIVATE_KEY=0x9a9a640da1fc0181e43a9ea00b81878f26e1678e3e246b25bd2835783f2be181
- BRIDGE_SECRET_RUNESBOB_BTC_MASTER_XPRIV=tprv8ZgxMBicQKsPdLiVtqrvinq5JyvByQZs4xWMgzZ3YWK7ndu27yQ3qoWivh8cgdtB3bKuYKWRKhaEvtykaFCsDCB7akNdcArjgrCnFhuDjmV
bob-bridge:
image: bridge_node:latest
build:
context: bridge_node
restart: always
depends_on:
postgres:
condition: service_healthy
alice-bridge:
condition: service_started
bob-tap:
condition: service_started
ports:
- 127.0.0.1:8182:8080
volumes:
- ./volumes/lnd/bob-lnd:/var/bridge/lnd
- ./volumes/tapd/bob-tap:/var/bridge/tapd
# These need to be shared and created once
# - ./secrets/certs/ca-key.pem:/srv/bridge_backend/certs/ca-key.pem
# - ./secrets/certs/ca-cert.pem:/srv/bridge_backend/certs/ca-cert.pem
environment:
# NOTE: the private keys and other secrets are supposed to be here -- they are not used in the real world, only regtest. Don't report them.
- BRIDGE_NODE_ID=bob-node
- BRIDGE_HOSTNAME=bob-bridge
- BRIDGE_LEADER_NODE_ID=alice-node
- BRIDGE_DB_URL=postgresql://bridge2:b2a8658e648ddc59b5172dfe@postgres:5432/bridge2
- LOG_LEVEL=DEBUG
- BRIDGE_ACCESS_CONTROL_CONTRACT_ADDRESS=0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9
- BRIDGE_EVM_PRIVATE_KEY=0x034262349de8b7bb1d8fdd7a9b6096aae0906a8f3b58ecc31af58b9f9a30e567
# ^-- address: 0x09dcD91DF9300a81a4b9C85FDd04345C3De58F48
- BRIDGE_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_EVM_BRIDGE_CONTRACT_ADDRESS=0x5FbDB2315678afecb367f032d93F642f64180aa3
- BRIDGE_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_PEERS=alice-node@alice-bridge:5000,bob-node@bob-bridge:5000
- BRIDGE_BTC_NETWORK=regtest
- BRIDGE_BTC_RPC_URL=http://polaruser:polarpass@bitcoind:18443
# Taproot Assets
- BRIDGE_TAP_HOST=bob-tap:8089
- BRIDGE_TAP_MACAROON_PATH=/var/bridge/tapd/data/regtest/admin.macaroon
- BRIDGE_TAP_TLS_CERT_PATH=/var/bridge/tapd/tls.cert
# RUNES
# TODO: we use the same keys as tap bridge. Might cause problems or not.
# RUNES COMMON
- BRIDGE_RUNES_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_RUNES_RUNE_BRIDGE_CONTRACT_ADDRESS=0xB7f8BC63BbcaD18155201308C8f3540b07f84F5e
- BRIDGE_RUNES_EVM_DEFAULT_START_BLOCK=1
- BRIDGE_RUNES_ORD_API_URL=http://ord:80
- BRIDGE_RUNES_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_RUNES_TO_EVM_FEE_PERCENTAGE_DECIMAL=0
- BRIDGE_RUNES_BTC_NUM_REQUIRED_SIGNERS=2
- BRIDGE_RUNES_BTC_BASE_DERIVATION_PATH=m/13/0/0
- BRIDGE_SECRET_RUNES_BTC_MASTER_XPUBS=tpubD6NzVbkrYhZ4WokHnVXX8CVBt1S88jkmeG78yWbLxn7Wd89nkNDe2J8b6opP4K38mRwXf9d9VVN5uA58epPKjj584R1rnDDbk6oHUD1MoWD,tpubD6NzVbkrYhZ4WpZfRZip3ALqLpXhHUbe6UyG8iiTzVDuvNUyysyiUJWejtbszZYrDaUM8UZpjLmHyvtV7r1QQNFmTqciAz1fYSYkw28Ux6y,tpubD6NzVbkrYhZ4WQZnWqU8ieBsujhoZKZLF6wMvTApJ4ZiGmipk481DyM2su3y5BDeB9fFLwSmmmsGDGJum79he2fnuQMnpWhe3bGir7Mf4uS
# RUNES NODE-SPECIFIC
- BRIDGE_RUNES_BTC_RPC_WALLET_URL=http://polaruser:polarpass@bitcoind:18443/wallet/bob-runes
- BRIDGE_SECRET_RUNES_EVM_PRIVATE_KEY=0x034262349de8b7bb1d8fdd7a9b6096aae0906a8f3b58ecc31af58b9f9a30e567
- BRIDGE_SECRET_RUNES_BTC_MASTER_XPRIV=tprv8ZgxMBicQKsPdMXsXv4Ddkgimo1m89QjXBNUrCgAaDRX5tEDMVA8HotnZmHcMvUVtgh1yXbN74StoJqv76jvRxJmkr2wvkPwTbZb1zeXv3Y
# RUNESBOB COMMON
- BRIDGE_RUNESBOB_EVM_BLOCK_SAFETY_MARGIN=1
- BRIDGE_RUNESBOB_RUNE_BRIDGE_CONTRACT_ADDRESS=0x9A676e781A523b5d0C0e43731313A708CB607508
- BRIDGE_RUNESBOB_EVM_DEFAULT_START_BLOCK=1
- BRIDGE_RUNESBOB_ORD_API_URL=http://ord:80
- BRIDGE_RUNESBOB_EVM_RPC_URL=http://hardhat:8545
- BRIDGE_RUNESBOB_TO_EVM_FEE_PERCENTAGE_DECIMAL=0
- BRIDGE_RUNESBOB_BTC_NUM_REQUIRED_SIGNERS=2
- BRIDGE_RUNESBOB_BTC_BASE_DERIVATION_PATH=m/26/0/0
- BRIDGE_SECRET_RUNESBOB_BTC_MASTER_XPUBS=tpubD6NzVbkrYhZ4WokHnVXX8CVBt1S88jkmeG78yWbLxn7Wd89nkNDe2J8b6opP4K38mRwXf9d9VVN5uA58epPKjj584R1rnDDbk6oHUD1MoWD,tpubD6NzVbkrYhZ4WpZfRZip3ALqLpXhHUbe6UyG8iiTzVDuvNUyysyiUJWejtbszZYrDaUM8UZpjLmHyvtV7r1QQNFmTqciAz1fYSYkw28Ux6y,tpubD6NzVbkrYhZ4WQZnWqU8ieBsujhoZKZLF6wMvTApJ4ZiGmipk481DyM2su3y5BDeB9fFLwSmmmsGDGJum79he2fnuQMnpWhe3bGir7Mf4uS
# RUNESBOB NODE-SPECIFIC
- BRIDGE_RUNESBOB_BTC_RPC_WALLET_URL=http://polaruser:polarpass@bitcoind:18443/wallet/bob-runesbob
- BRIDGE_SECRET_RUNESBOB_EVM_PRIVATE_KEY=0x034262349de8b7bb1d8fdd7a9b6096aae0906a8f3b58ecc31af58b9f9a30e567
- BRIDGE_SECRET_RUNESBOB_BTC_MASTER_XPRIV=tprv8ZgxMBicQKsPdMXsXv4Ddkgimo1m89QjXBNUrCgAaDRX5tEDMVA8HotnZmHcMvUVtgh1yXbN74StoJqv76jvRxJmkr2wvkPwTbZb1zeXv3Y
labels:
- "node.type=bridge"
alice-lnd:
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
stop_grace_period: 2m
image: polarlightning/lnd:0.17.3-beta
hostname: alice-lnd
depends_on:
- bitcoind
command: >-
lnd --noseedbackup --trickledelay=5000 --alias=alice-lnd --externalip=alice-lnd
--tlsextradomain=alice-lnd --tlsextradomain=alice-lnd
--tlsextradomain=host.docker.internal --listen=0.0.0.0:9735
--rpclisten=0.0.0.0:10009 --restlisten=0.0.0.0:8080 --bitcoin.active
--bitcoin.regtest --bitcoin.node=bitcoind
--bitcoind.rpchost=bitcoind --bitcoind.rpcuser=polaruser
--bitcoind.rpcpass=polarpass
--bitcoind.zmqpubrawblock=tcp://bitcoind:28334
--bitcoind.zmqpubrawtx=tcp://bitcoind:28335
restart: always
volumes:
- ./volumes/lnd/alice-lnd:/home/lnd/.lnd
ports:
- '8082:8080'
- '10002:10009'
- '9736:9735'
bob-lnd:
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
stop_grace_period: 2m
image: polarlightning/lnd:0.17.3-beta
hostname: bob-lnd
depends_on:
- bitcoind
command: >-
lnd --noseedbackup --trickledelay=5000 --alias=bob-lnd --externalip=bob-lnd
--tlsextradomain=bob-lnd --tlsextradomain=bob-lnd
--tlsextradomain=host.docker.internal --listen=0.0.0.0:9735
--rpclisten=0.0.0.0:10009 --restlisten=0.0.0.0:8080 --bitcoin.active
--bitcoin.regtest --bitcoin.node=bitcoind
--bitcoind.rpchost=bitcoind --bitcoind.rpcuser=polaruser
--bitcoind.rpcpass=polarpass
--bitcoind.zmqpubrawblock=tcp://bitcoind:28334
--bitcoind.zmqpubrawtx=tcp://bitcoind:28335
restart: always
volumes:
- ./volumes/lnd/bob-lnd:/home/lnd/.lnd
ports:
- '8083:8080'
- '10003:10009'
- '9737:9735'
# TODO: re-enable carol after tests are rewritten for 2-of-3 multisig
# carol-lnd:
# environment:
# USERID: ${USERID:-1000}
# GROUPID: ${GROUPID:-1000}
# stop_grace_period: 2m
# image: polarlightning/lnd:0.17.3-beta
# hostname: carol-lnd
# depends_on:
# - bitcoind
# command: >-
# lnd --noseedbackup --trickledelay=5000 --alias=carol-lnd --externalip=carol-lnd
# --tlsextradomain=carol-lnd --tlsextradomain=carol-lnd
# --tlsextradomain=host.docker.internal --listen=0.0.0.0:9735
# --rpclisten=0.0.0.0:10009 --restlisten=0.0.0.0:8080 --bitcoin.active
# --bitcoin.regtest --bitcoin.node=bitcoind
# --bitcoind.rpchost=bitcoind --bitcoind.rpcuser=polaruser
# --bitcoind.rpcpass=polarpass
# --bitcoind.zmqpubrawblock=tcp://bitcoind:28334
# --bitcoind.zmqpubrawtx=tcp://bitcoind:28335
# restart: always
# volumes:
# - ./volumes/lnd/carol-lnd:/home/lnd/.lnd
# ports:
# - '8084:8080'
# - '10004:10009'
# - '9738:9735'
user-lnd:
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
stop_grace_period: 2m
image: polarlightning/lnd:0.17.3-beta
hostname: user-lnd
depends_on:
- bitcoind
command: >-
lnd --noseedbackup --trickledelay=5000 --alias=user-lnd --externalip=user-lnd
--tlsextradomain=user-lnd --tlsextradomain=user-lnd
--tlsextradomain=host.docker.internal --listen=0.0.0.0:9735
--rpclisten=0.0.0.0:10009 --restlisten=0.0.0.0:8080 --bitcoin.active
--bitcoin.regtest --bitcoin.node=bitcoind
--bitcoind.rpchost=bitcoind --bitcoind.rpcuser=polaruser
--bitcoind.rpcpass=polarpass
--bitcoind.zmqpubrawblock=tcp://bitcoind:28334
--bitcoind.zmqpubrawtx=tcp://bitcoind:28335
restart: always
volumes:
- ./volumes/lnd/user-lnd:/home/lnd/.lnd
ports:
- '8085:8080'
- '10005:10009'
- '9739:9735'
alice-tap:
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
stop_grace_period: 2m
image: polarlightning/tapd:0.3.2-alpha
hostname: alice-tap
depends_on:
- alice-lnd
command: >-
tapd --network=regtest --debuglevel=debug --tlsextradomain=alice-tap
--tlsextradomain=alice-tap --rpclisten=0.0.0.0:10029
--restlisten=0.0.0.0:8089 --lnd.host=alice-lnd:10009
--lnd.macaroonpath=/home/tap/.lnd/data/chain/bitcoin/regtest/admin.macaroon
--lnd.tlspath=/home/tap/.lnd/tls.cert --allow-public-uni-proof-courier
--allow-public-stats --universe.public-access
restart: always
volumes:
- ./volumes/lnd/alice-lnd:/home/tap/.lnd
- ./volumes/tapd/alice-tap:/home/tap/.tapd
ports:
- '8289:8089'
- '12029:10029'
bob-tap:
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
stop_grace_period: 2m
image: polarlightning/tapd:0.3.2-alpha
hostname: bob-tap
depends_on:
- bob-lnd
command: >-
tapd --network=regtest --debuglevel=debug --tlsextradomain=bob-tap
--tlsextradomain=bob-tap --rpclisten=0.0.0.0:10029
--restlisten=0.0.0.0:8089 --lnd.host=bob-lnd:10009
--lnd.macaroonpath=/home/tap/.lnd/data/chain/bitcoin/regtest/admin.macaroon
--lnd.tlspath=/home/tap/.lnd/tls.cert --allow-public-uni-proof-courier
--allow-public-stats --universe.public-access
restart: always
volumes:
- ./volumes/lnd/bob-lnd:/home/tap/.lnd
- ./volumes/tapd/bob-tap:/home/tap/.tapd
ports:
- '8290:8089'
- '12030:10029'
# TODO: re-enable carol after tests are rewritten for 2-of-3 multisig
# carol-tap:
# environment:
# USERID: ${USERID:-1000}
# GROUPID: ${GROUPID:-1000}
# stop_grace_period: 2m
# image: polarlightning/tapd:0.3.2-alpha
# hostname: carol-tap
# depends_on:
# - carol-lnd
# command: >-
# tapd --network=regtest --debuglevel=debug --tlsextradomain=carol-tap
# --tlsextradomain=carol-tap --rpclisten=0.0.0.0:10029
# --restlisten=0.0.0.0:8089 --lnd.host=carol-lnd:10009
# --lnd.macaroonpath=/home/tap/.lnd/data/chain/bitcoin/regtest/admin.macaroon
# --lnd.tlspath=/home/tap/.lnd/tls.cert --allow-public-uni-proof-courier
# --allow-public-stats --universe.public-access
# restart: always
# volumes:
# - ./volumes/lnd/carol-lnd:/home/tap/.lnd
# - ./volumes/tapd/carol-tap:/home/tap/.tapd
# ports:
# - '8291:8089'
# - '12031:10029'
user-tap:
environment:
USERID: ${USERID:-1000}
GROUPID: ${GROUPID:-1000}
stop_grace_period: 2m
image: polarlightning/tapd:0.3.2-alpha
hostname: user-tap
depends_on:
- user-lnd
command: >-
tapd --network=regtest --debuglevel=debug --tlsextradomain=user-tap
--tlsextradomain=user-tap --rpclisten=0.0.0.0:10029
--restlisten=0.0.0.0:8089 --lnd.host=user-lnd:10009
--lnd.macaroonpath=/home/tap/.lnd/data/chain/bitcoin/regtest/admin.macaroon
--lnd.tlspath=/home/tap/.lnd/tls.cert --allow-public-uni-proof-courier
--allow-public-stats --universe.public-access
restart: always
volumes:
- ./volumes/lnd/user-lnd:/home/tap/.lnd
- ./volumes/tapd/user-tap:/home/tap/.tapd
ports:
- '8292:8089'
- '12032:10029'
# web:
# image: bridge_frontend:latest
# build:
# context: bridge_frontend
# restart: always
# ports:
# - 127.0.0.1:3003:3000
# healthcheck:
# test: curl -f http://localhost:3000 || exit 1
# interval: 10s
# timeout: 10s
# retries: 5
# start_period: 5s
# labels:
# - "traefik.http.routers.web.rule=PathPrefix(`/`)"
# - "traefik.http.services.web.loadbalancer.server.port=3000"
# - "traefik.enable=true"
reverse-proxy:
image: traefik:v2.11
command: --providers.docker --providers.docker.exposedbydefault=false
ports:
- "127.0.0.1:8081:80"
- "127.0.0.1:8080:8080"
volumes:
# So that Traefik can listen to the Docker events
- /var/run/docker.sock:/var/run/docker.sock
volumes:
postgres:
name: ${POSTGRES_VOLUME:-sovryn-nbte-bridge_postgres}