-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·837 lines (803 loc) · 21.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
executable file
·837 lines (803 loc) · 21.5 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
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
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
x-services:
base-scripts: &base-scripts
image: ${SCRIPTS_IMAGE}
volumes:
- ./images/scripts/utils.sh:/etc/profile.d/utils.sh:ro,z
- bitcoin-data:/root/.bitcoin:z
- elements-data:/root/.elements:z
- cln1-data:/root/.lightning-1:z
- cln2-data:/root/.lightning-2:z
- lnd1-data:/root/.lnd-1:z
- lnd2-data:/root/.lnd-2:z
- lnd3-data:/root/.lnd-3:z
- boltz-client-data:/root/.boltz-client:z
- boltz-data:/root/.boltz-backend:z
- arkd-data:/root/.arkd:z
- fulmine-data:/root/.fulmine:z
base-lnd: &base-lnd
image: ${LND_IMAGE}
restart: always
user: '${UID:-1000}:${GID:-1000}'
depends_on:
bitcoind-init:
condition: service_completed_successfully
command:
- --listen=0.0.0.0:9735
- --rpclisten=0.0.0.0:10009
- --restlisten=0.0.0.0:8081
- --bitcoin.timelockdelta=24
- --bitcoin.active
- --bitcoin.regtest
- --bitcoin.node=bitcoind
- --bitcoind.rpchost=bitcoind
- --bitcoind.zmqpubrawtx=bitcoind:29000
- --bitcoind.zmqpubrawblock=bitcoind:29001
- --bitcoind.rpccookie=/app/bitcoin/regtest/.cookie
- --noseedbackup
- --protocol.wumbo-channels
# LND v0.21.0 advertises option_onion_messages but refuses to forward
# messages back to the sending peer ("onion message cycle"), which
# breaks CLN BOLT12 blinded paths that use an LND node as intro node
- --protocol.no-onion-messages
- --lnddir=/app/lnd
expose:
- 8081
- 9735
volumes_from:
- bitcoind:ro
healthcheck:
test:
[
'CMD-SHELL',
'lncli --network=regtest --lnddir=/app/lnd --rpcserver=$$HOSTNAME
getinfo',
]
interval: 1s
timeout: 1s
retries: 60
start_period: 10s
base-cln: &base-cln
image: ${CLN_IMAGE}
restart: always
user: '${UID:-1000}:${GID:-1000}'
depends_on:
bitcoind-init:
condition: service_completed_successfully
command:
- --lightning-dir=/app/lightning
- --large-channels
- --network
- regtest
- --bind-addr=0.0.0.0:9735
- --bitcoin-rpcconnect=bitcoind
- --bitcoin-rpcport=18443
- --grpc-host=0.0.0.0
- --grpc-port=9736
- --dev-bitcoind-poll=3
- --developer
- --dev-fast-gossip
- --dev-fast-reconnect
- --plugin=/usr/local/bin/hold
- --plugin=/usr/local/bin/clnurl
- --clnurl-host=0.0.0.0
- --ignore-fee-limits=false
- --min-emergency-msat=1000000
- --bitcoin-datadir=/app/bitcoin
- --cltv-delta=18
- --cltv-final=18
expose:
- 9735
- 9736
# LNURL
- 3000
volumes_from:
- bitcoind:ro
healthcheck:
test:
[
'CMD',
'lightning-cli',
'--lightning-dir=/app/lightning',
'--network=regtest',
'getinfo',
]
timeout: 1s
retries: 60
interval: 1s
start_period: 10s
base-anvil: &base-anvil
image: ${FOUNDRY_IMAGE}
restart: always
entrypoint:
- /bin/sh
- -c
- |
rpc_url="$${FORK_RPC_URL:-}"
if [ -z "$$rpc_url" ]; then
exec anvil --host 0.0.0.0 --chain-id "$$CHAIN_ID" $$EXTRA_ANVIL_ARGS
fi
exec anvil \
--host 0.0.0.0 \
--chain-id "$$CHAIN_ID" \
$$EXTRA_ANVIL_ARGS \
--no-rate-limit \
--fork-url "$$rpc_url" \
--fork-block-number "$$FORK_BLOCK_NUMBER"
healthcheck:
test:
- CMD-SHELL
- |
if [ -n "$$FORK_RPC_URL" ] && [ -n "$$FORK_READY_ADDRESS" ]; then
size=$$(cast codesize "$$FORK_READY_ADDRESS" --rpc-url http://127.0.0.1:8545) && [ "$$size" -gt 0 ]
else
cast block-number --rpc-url http://127.0.0.1:8545
fi
timeout: 15s
retries: 30
interval: 2s
start_period: 0s
services:
cleanup:
<<: *base-scripts
restart: no
container_name: boltz-cleanup
entrypoint: ['/bin/bash', '-c', '/cleanup.sh']
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
postgres:
hostname: postgres
container_name: boltz-postgres
restart: always
image: ${POSTGRES_IMAGE}
healthcheck:
test: ['CMD-SHELL', 'pg_isready --dbname boltz --username boltz']
interval: 5s
timeout: 30s
retries: 10
start_period: 5s
environment:
- POSTGRES_DB=boltz
- POSTGRES_USER=boltz
- POSTGRES_PASSWORD=boltz
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
ports:
- 5432:5432
expose:
- 5432
redis:
hostname: redis
container_name: boltz-redis
restart: always
image: ${REDIS_IMAGE}
volumes:
- ./redis/cache.conf:/usr/local/etc/redis/redis.conf:ro,z
command: redis-server /usr/local/etc/redis/redis.conf
ports:
- 6379:6379
ulimits:
memlock: -1
profiles: ['backend-dev']
boltz-backend:
hostname: boltz
container_name: boltz-backend
user: '${UID:-1000}:${GID:-1000}'
depends_on:
anvil-arb:
condition: service_healthy
required: false
regtest-start:
condition: service_completed_successfully
postgres:
condition: service_healthy
restart: always
image: ${BOLTZ_BACKEND_IMAGE}
entrypoint: ['/bin/sh', '/boltz-entrypoint.sh']
volumes:
- boltz-data:/boltz-data:z
- lnd2-data:/data/lnd-2:z
- lnd3-data:/data/lnd-3:z
- cln2-data:/data/lightning:z
- elements-data:/data/elements:z
- bitcoin-data:/data/bitcoin:z
- ./images/boltz-backend/entrypoint.sh:/boltz-entrypoint.sh:ro,z
- ./images/boltz-backend/arbitrum.conf:/arbitrum.conf:ro,z
- ./images/boltz-backend/ark.conf:/ark.conf:ro,z
# For the [ark] macaroonpath; empty unless the ark stack is active.
- fulmine-data:/data/fulmine:z
ports:
- 9000:9000
healthcheck:
test: ['CMD-SHELL', "timeout 1 bash -c 'echo > /dev/tcp/127.0.0.1/9000'"]
timeout: 1s
retries: 10
interval: 1s
# The backend needs time to initialise (certs, lightning subscriptions,
# chain rescan, and — when enabled — connecting to the Arbitrum fork)
# before it listens on 9000. Keep it "starting" until then so
# dependents (nginx, web-app, client) are not aborted on a cold up.
start_period: 120s
profiles: ['default', 'ci', 'webapp-ci']
boltz-backend-nginx:
hostname: boltz-nginx
container_name: boltz-backend-nginx
depends_on:
boltz-backend:
condition: service_healthy
restart: always
image: ${NGINX_IMAGE}
ports:
- 9001:9001
volumes:
- nginx-data:/etc/nginx/conf.d:z
healthcheck:
test: ['CMD-SHELL', 'curl http://localhost:9001/version']
timeout: 1s
retries: 10
interval: 1s
start_period: 0s
profiles: ['default', 'ci', 'webapp-ci']
boltz-web-app:
hostname: web-app
container_name: boltz-web-app
depends_on:
boltz-backend-nginx:
condition: service_healthy
restart: always
image: ${BOLTZ_WEBAPP_IMAGE}
ports:
- 8080:80
profiles: ['default']
boltz-client:
hostname: boltz-client
container_name: boltz-client
depends_on:
boltz-backend-nginx:
condition: service_healthy
restart: always
image: ${BOLTZ_CLIENT_IMAGE}
ports:
- 9102:9002
- 9103:9003
healthcheck:
test: ['CMD', 'boltzcli', '--host', 'boltz-client', 'getinfo']
interval: 5s
timeout: 3s
retries: 10
start_period: 0s
volumes:
- cln1-data:/root/.lightning:z
- elements-data:/root/.elements:z
- boltz-client-data:/root/.boltz:z
profiles: ['default']
anvil:
hostname: anvil
container_name: boltz-anvil
image: ${FOUNDRY_IMAGE}
# Chain ID 33 is the regtest of Rootstock
entrypoint: 'anvil --host 0.0.0.0 --chain-id 33'
ports:
- 8545:8545
healthcheck:
test: ['CMD-SHELL', "timeout 1 bash -c 'echo > /dev/tcp/127.0.0.1/8545'"]
timeout: 1s
retries: 3
interval: 1s
start_period: 0s
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
anvil-eth:
<<: *base-anvil
hostname: anvil-eth
container_name: anvil-eth
environment:
FORK_RPC_URL: ${ETHEREUM_E2E_RPC_URL:-}
FORK_BLOCK_NUMBER: ${ETHEREUM_E2E_BLOCK_NUMBER}
CHAIN_ID: 1
FORK_READY_ADDRESS: '0xdAC17F958D2ee523a2206206994597C13D831ec7'
ports:
- ${ETHEREUM_E2E_PORT:-18546}:8545
profiles: ['ci', 'webapp-ci']
anvil-arb:
<<: *base-anvil
hostname: anvil-arb
container_name: anvil-arb
environment:
FORK_RPC_URL: ${ARBITRUM_E2E_RPC_URL:-}
FORK_BLOCK_NUMBER: ${ARBITRUM_E2E_BLOCK_NUMBER}
CHAIN_ID: 42161
EXTRA_ANVIL_ARGS: '--gas-limit 30000000'
FORK_READY_ADDRESS: '0x6398B76DF91C5eBe9f488e3656658E79284dDc0F'
ports:
- ${ARBITRUM_E2E_PORT:-18545}:8545
profiles: ['ci', 'webapp-ci']
gas-sponsor-emulator:
hostname: gas-sponsor-emulator
container_name: boltz-gas-sponsor-emulator
image: ${GAS_SPONSOR_EMULATOR_IMAGE}
environment:
ARBITRUM_RPC_URL: http://anvil-arb:8545
GAS_SPONSOR_EMULATOR_PORT: 18547
depends_on:
anvil-arb:
condition: service_healthy
ports:
- ${GAS_SPONSOR_EMULATOR_PORT:-18547}:18547
healthcheck:
test: ['CMD-SHELL', "timeout 1 bash -c 'echo > /dev/tcp/127.0.0.1/18547'"]
timeout: 1s
retries: 10
interval: 1s
start_period: 0s
profiles: ['ci', 'webapp-ci']
bitcoind:
container_name: boltz-bitcoind
hostname: bitcoind
restart: always
image: ${BITCOIN_CORE_IMAGE}
user: '${UID:-1000}:${GID:-1000}'
command:
- -regtest
- -datadir=/app/bitcoin
- -fallbackfee=0.00000253
- -mintxfee=0.000001
- -zmqpubrawtx=tcp://0.0.0.0:29000
- -zmqpubrawblock=tcp://0.0.0.0:29001
- -txindex
- -rpcallowip=0.0.0.0/0
- -rpcbind=0.0.0.0
- -deprecatedrpc=warnings
- -rpcauth=backend:b2df2fbc6cd2569073e5b5860011e00c$7930df46dff1fc5690973aef153e2106ece57104d7d16b737fb775131bc99ea4
depends_on:
cleanup:
condition: service_completed_successfully
expose:
- 18443
- 18444
ports:
- 18443:18443
- 18444:18444
- 29000:29000
- 29001:29001
volumes:
- bitcoin-data:/app/bitcoin:z
healthcheck:
test:
[
'CMD',
'bitcoin-cli',
'--rpccookiefile=/app/bitcoin/regtest/.cookie',
'-regtest',
'getblockchaininfo',
]
timeout: 1s
retries: 1
interval: 1s
start_period: 0s
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
elementsd:
container_name: boltz-elementsd
hostname: elements
restart: always
image: ${ELEMENTS_IMAGE}
depends_on:
cleanup:
condition: service_completed_successfully
expose:
- 31001
ports:
- 31000:31000
- 31001:31001
- 31002:31002
- 18884:18884
volumes:
- elements-data:/root/.elements:z
healthcheck:
test: ['CMD', 'elements-cli', '-getinfo']
timeout: 1s
retries: 1
interval: 1s
start_period: 0s
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
cln-1:
container_name: boltz-cln-1
hostname: cln-1
<<: *base-cln
ports:
- 9736:9736
- 9292:9292
- 3000:3000
volumes:
- cln1-data:/app/lightning:z
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
cln-2:
container_name: boltz-cln-2
hostname: cln-2
<<: *base-cln
ports:
- 9737:9736
- 9738:9292
- 9739:9293
volumes:
- cln2-data:/app/lightning:z
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
lnd-1:
<<: *base-lnd
container_name: boltz-lnd-1
hostname: lnd-1
ports:
- 8081:8081
- 10009:10009
- 29735:9735
volumes:
- lnd1-data:/app/lnd/:z
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
lnd-2:
<<: *base-lnd
container_name: boltz-lnd-2
hostname: lnd-2
ports:
- 11009:10009
volumes:
- lnd2-data:/app/lnd/:z
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
lnd-3:
<<: *base-lnd
container_name: boltz-lnd-3
hostname: lnd-3
ports:
- 12009:10009
volumes:
- lnd3-data:/app/lnd/:z
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
bitcoind-init:
<<: *base-scripts
restart: no
container_name: boltz-bitcoind-init
entrypoint:
['/bin/bash', '-c', 'source /etc/profile.d/utils.sh && bitcoind-init']
depends_on:
- bitcoind
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
regtest-start:
<<: *base-scripts
restart: no
container_name: boltz-regtest-start
environment:
- COMPOSE_PROFILES=${COMPOSE_PROFILES:-}
entrypoint:
['/bin/bash', '-c', 'source /etc/profile.d/utils.sh && regtest-start']
depends_on:
bitcoind-init:
condition: service_completed_successfully
elementsd:
condition: service_healthy
lnd-1:
condition: service_healthy
lnd-2:
condition: service_healthy
lnd-3:
condition: service_healthy
cln-1:
condition: service_healthy
cln-2:
condition: service_healthy
anvil:
condition: service_healthy
anvil-eth:
condition: service_healthy
required: false
anvil-arb:
condition: service_healthy
required: false
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
scripts:
<<: *base-scripts
restart: no
container_name: boltz-scripts
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
electrs:
hostname: electrs-bitcoin
container_name: boltz-electrs-bitcoin
restart: always
image: ${ELECTRS_IMAGE}
depends_on:
bitcoind-init:
condition: service_completed_successfully
entrypoint: ['electrs-bitcoin']
command:
- --electrum-rpc-addr
- electrs:19001
- --http-addr
- electrs:3002
- --daemon-rpc-addr
- bitcoind:18443
- --network
- regtest
- --jsonrpc-import
healthcheck:
test: ['CMD-SHELL', 'curl -s $(hostname):3002/blocks/tip/height']
timeout: 1s
retries: 20
interval: 2s
start_period: 5s
ports:
- 19001:19001
- 3002:3002
volumes:
- bitcoin-data:/root/.bitcoin:z
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
electrs-liquid:
hostname: electrs-liquid
container_name: boltz-electrs-liquid
restart: always
image: ${ELECTRS_IMAGE}
depends_on:
elementsd:
condition: service_healthy
entrypoint: ['electrs-liquid']
command:
- --electrum-rpc-addr
- electrs-liquid:19002
- --http-addr
- electrs-liquid:3003
- --daemon-rpc-addr
- elementsd:18884
- --daemon-dir
- /root/.elements
- --cookie
- regtest:regtest
- --network
- liquidregtest
- --parent-network
- regtest
- --jsonrpc-import
healthcheck:
test: ['CMD-SHELL', 'curl -s $(hostname):3003/blocks/tip/height']
timeout: 15s
retries: 60
interval: 2s
start_period: 15s
ports:
- 19002:19002
- 3003:3003
volumes:
- elements-data:/root/.elements:z
profiles: ['default', 'ci', 'backend-dev', 'webapp-ci']
esplora:
hostname: esplora
container_name: boltz-esplora
restart: always
image: ${ESPLORA_IMAGE}
depends_on:
electrs:
condition: service_healthy
electrs-liquid:
condition: service_healthy
ports:
- 4002:4002
- 4003:4003
profiles: ['default', 'esplora', 'backend-dev', 'webapp-ci']
otterscan:
hostname: otterscan
container_name: boltz-otterscan
restart: always
image: ${OTTERSCAN_IMAGE}
environment:
- OTTERSCAN_CONFIG={"erigonURL":"http://localhost:8545","chainInfo":{"name":"Anvil","faucets":[],"nativeCurrency":{"name":"Rootstock
BTC","symbol":"RBTC","decimals":18}}}
depends_on:
anvil:
condition: service_healthy
ports:
- 5100:80
profiles: ['default']
nbxplorer:
container_name: boltz-nbxplorer
image: ${NBXPLORER_IMAGE}
restart: unless-stopped
ports:
- '32838:32838'
expose:
- '32838'
environment:
NBXPLORER_NETWORK: regtest
NBXPLORER_CHAINS: 'btc'
NBXPLORER_BTCRPCURL: http://bitcoind:18443/
NBXPLORER_BTCRPCCOOKIEFILE: /app/bitcoin/regtest/.cookie
NBXPLORER_BTCNODEENDPOINT: bitcoind:18444
NBXPLORER_BIND: 0.0.0.0:32838
NBXPLORER_MINGAPSIZE: 5
NBXPLORER_MAXGAPSIZE: 10
NBXPLORER_VERBOSE: 1
NBXPLORER_POSTGRES:
User ID=boltz;Password=boltz;Include Error
Detail=true;Host=postgres;Port=5432;Database=nbxplorer
NBXPLORER_EXPOSERPC: 1
NBXPLORER_NOAUTH: 1
depends_on:
bitcoind-init:
condition: service_completed_successfully
postgres:
condition: service_healthy
healthcheck:
test:
- CMD
- bash
- -lc
- |
exec 3<>/dev/tcp/127.0.0.1/32838 || exit 1
printf 'GET /v1/cryptos/BTC/status HTTP/1.1\r\nHost: 127.0.0.1\r\nConnection: close\r\n\r\n' >&3
response="$$(cat <&3)" || exit 1
grep -q 'HTTP/1.1 200' <<<"$$response" &&
grep -q '"isFullySynched":true' <<<"$$response" &&
grep -q '"capabilities"' <<<"$$response"
interval: 2s
timeout: 2s
retries: 30
start_period: 10s
volumes:
- bitcoin-data:/app/bitcoin:z
profiles: ['btcpay', 'ark', 'backend-dev']
arkd-wallet:
image: ${ARKD_WALLET_IMAGE}
container_name: arkd-wallet
depends_on:
nbxplorer:
condition: service_healthy
ports:
- '6060:6060'
environment:
- ARKD_WALLET_LOG_LEVEL=5
- ARKD_WALLET_NBXPLORER_URL=http://nbxplorer:32838
- ARKD_WALLET_DATADIR=./data/regtest
- ARKD_WALLET_NETWORK=regtest
- ARKD_WALLET_SIGNER_KEY=afcd3fa10f82a05fddc9574fdb13b3991b568e89cc39a72ba4401df8abef35f0
healthcheck:
test:
[
'CMD-SHELL',
"wget -q -T 1 -O - http://127.0.0.1:6060/v1/wallet/network | grep -q 'regtest'",
]
interval: 1s
timeout: 1s
retries: 30
start_period: 0s
profiles: ['ark', 'backend-dev']
arkd:
image: ${ARKD_IMAGE}
container_name: arkd
depends_on:
arkd-wallet:
condition: service_healthy
ports:
- '7070:7070'
environment:
- ARKD_LOG_LEVEL=6
- ARKD_NO_MACAROONS=true
- ARKD_VTXO_TREE_EXPIRY=2048
- ARKD_UNILATERAL_EXIT_DELAY=512
- ARKD_PUBLIC_UNILATERAL_EXIT_DELAY=512
- ARKD_BOARDING_EXIT_DELAY=2048
- ARKD_CHECKPOINT_EXIT_DELAY=512
- ARKD_WALLET_ADDR=arkd-wallet:6060
- ARKD_ESPLORA_URL=http://electrs-bitcoin:3002
- ARKD_VTXO_MIN_AMOUNT=1
- ARKD_LIVE_STORE_TYPE=inmemory
- ARKD_EVENT_DB_TYPE=badger
- ARKD_DB_TYPE=sqlite
- ARKD_SESSION_DURATION=30
volumes:
- arkd-data:/app/data:z
profiles: ['ark', 'backend-dev']
fulmine:
image: ${FULMINE_IMAGE}
container_name: fulmine
restart: unless-stopped
depends_on:
arkd:
condition: service_started
ports:
- '7000:7000'
- '7001:7001'
environment:
- FULMINE_HTTP_PORT=7001
- FULMINE_ARK_SERVER=http://arkd:7070
- FULMINE_ESPLORA_URL=http://electrs-bitcoin:3002
- FULMINE_UNLOCKER_TYPE=env
- FULMINE_UNLOCKER_PASSWORD=ark
- FULMINE_DISABLE_TELEMETRY=true
volumes:
- fulmine-data:/app/data:z
profiles: ['ark', 'backend-dev']
backend-dev-ready:
<<: *base-scripts
restart: no
container_name: boltz-backend-dev-ready
entrypoint: ['/bin/bash', '-c', 'echo "Backend dev environment ready"']
depends_on:
regtest-start:
condition: service_completed_successfully
profiles: ['backend-dev']
volumes:
boltz-data:
name: boltz-backend-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/backend
boltz-client-data:
name: boltz-client-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/boltz-client
bitcoin-data:
name: boltz-bitcoind-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/bitcoind
elements-data:
name: boltz-elements-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/elements
cln1-data:
name: boltz-cln1-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/cln1
cln2-data:
name: boltz-cln2-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/cln2
lnd1-data:
name: boltz-lnd1-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/lnd1
lnd2-data:
name: boltz-lnd2-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/lnd2
lnd3-data:
name: boltz-lnd3-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/lnd3
nginx-data:
name: boltz-nginx-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/backend-nginx/
arkd-data:
name: arkd-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/arkd
fulmine-data:
name: fulmine-data
driver: local
driver_opts:
type: none
o: bind
device: ./data/fulmine