-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose-token-lnd-nodes.yml
96 lines (92 loc) · 3.59 KB
/
docker-compose-token-lnd-nodes.yml
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
services:
bitcoind:
image: lncm/bitcoind:v22.0@sha256:37a1adb29b3abc9f972f0d981f45e41e5fca2e22816a023faa9fdc0084aa4507
container_name: mercurylayer-bitcoind-1
user: root
command: -regtest -rpcbind=0.0.0.0 -rpcallowip=0.0.0.0/0 -rpcauth=user:63cf03615adebaa9356591f95b07ec7b$$920588e53f94798bda636acac1b6a77e10e3ee7fe57e414d62f3ee9e580cd27a -fallbackfee=0.0001 -zmqpubrawblock=tcp://0.0.0.0:28332 -zmqpubrawtx=tcp://0.0.0.0:28333
ports:
- "18443:18443"
- "28332:28332"
- "28333:28333"
volumes:
- bitcoin_data:/root/.bitcoin
alice:
image: lightninglabs/lndinit:v0.1.21-beta-lnd-v0.18.0-beta
container_name: mercurylayer-alice-1
user: root
hostname: lnd
entrypoint:
- sh
- -c
- |
if [[ ! -f /data/seed.txt ]]; then
lndinit gen-seed > /data/seed.txt
fi
if [[ ! -f /data/walletpassword.txt ]]; then
lndinit gen-password > /data/walletpassword.txt
fi
lndinit -v init-wallet \
--secret-source=file \
--file.seed=/data/seed.txt \
--file.wallet-password=/data/walletpassword.txt \
--init-file.output-wallet-dir=/root/.lnd/data/chain/bitcoin/regtest \
--init-file.validate-password
mkdir -p /data/.lnd
if [ ! -f "/data/.lnd/umbrel-lnd.conf" ]; then
touch "/data/.lnd/umbrel-lnd.conf"
fi
lnd --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=user --bitcoind.rpcpass=pass --bitcoind.zmqpubrawblock=tcp://bitcoind:28332 --bitcoind.zmqpubrawtx=tcp://bitcoind:28333 --configfile=/data/.lnd/umbrel-lnd.conf --wallet-unlock-password-file=/data/walletpassword.txt --wallet-unlock-allow-create
ports:
- "9735:9735"
- "10009:10009"
- "8080:8080"
volumes:
- alice-data:/data/.lnd
restart: unless-stopped
environment:
HOME: /data
command: [ '/init-wallet-k8s.sh' ]
depends_on:
- bitcoind
bob:
image: lightninglabs/lndinit:v0.1.21-beta-lnd-v0.18.0-beta
container_name: mercurylayer-bob-1
user: root
hostname: lnd
entrypoint:
- sh
- -c
- |
if [[ ! -f /data/seed.txt ]]; then
lndinit gen-seed > /data/seed.txt
fi
if [[ ! -f /data/walletpassword.txt ]]; then
lndinit gen-password > /data/walletpassword.txt
fi
lndinit -v init-wallet \
--secret-source=file \
--file.seed=/data/seed.txt \
--file.wallet-password=/data/walletpassword.txt \
--init-file.output-wallet-dir=/root/.lnd/data/chain/bitcoin/regtest \
--init-file.validate-password
mkdir -p /data/.lnd
if [ ! -f "/data/.lnd/umbrel-lnd.conf" ]; then
touch "/data/.lnd/umbrel-lnd.conf"
fi
lnd --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=user --bitcoind.rpcpass=pass --bitcoind.zmqpubrawblock=tcp://bitcoind:28332 --bitcoind.zmqpubrawtx=tcp://bitcoind:28333 --configfile=/data/.lnd/umbrel-lnd.conf --wallet-unlock-password-file=/data/walletpassword.txt --wallet-unlock-allow-create
ports:
- "9736:9735"
- "10010:10009"
- "8081:8080"
volumes:
- bob-data:/data/.lnd
restart: unless-stopped
environment:
HOME: /data
command: [ '/init-wallet-k8s.sh' ]
depends_on:
- bitcoind
volumes:
bitcoin_data:
alice-data:
bob-data: