-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
265 lines (246 loc) · 7.48 KB
/
docker-compose.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
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
services:
lnd1:
image: lightninglabs/lnd:v0.18.0-beta.1
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.1.2
command: --externalip=172.30.1.2 --externalip=lnd1:9735 --tlsextradomain=lnd1 --alias=lnd1 --color=#89CFF0
volumes:
- "lnd1:/root/.lnd"
- "./conf/lnd/lnd.conf:/root/.lnd/lnd.conf"
lndk1:
build: ./docker/lndk
restart: unless-stopped
depends_on:
- lnd1
entrypoint: ["/wait-for-lnd.sh", "lnd1", "5"]
command: --address=https://lnd1:10009 --cert-path=/root/.lnd/tls.cert --macaroon-path=/root/.lnd/data/chain/bitcoin/regtest/admin.macaroon --log-level=trace --grpc-host=0.0.0.0
environment:
- RUST_BACKTRACE=1
volumes:
- "lndk1:/root/.lndk"
- "lnd1:/root/.lnd:ro"
- "./docker/lndk/wait-for-lnd.sh:/wait-for-lnd.sh"
networks:
testing_net:
ipv4_address: 172.30.1.3
cln1:
image: elementsproject/lightningd:v24.05
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.1.30
entrypoint: ["/wait-for-bitcoind.sh"]
command: --network=regtest --addr=0.0.0.0:9735 --announce-addr=172.30.1.30:9735 --bitcoin-retry-timeout=180 --developer --dev-fast-gossip --dev-bitcoind-poll=2 --alias=cln1 --rgb=FF0000
volumes:
- "cln1:/root/.lightning"
- "bitcoind:/root/.lightning/bitcoin:ro"
- "./conf/cln/config:/root/.lightning/config"
- "./docker/cln/wait-for-bitcoind.sh:/wait-for-bitcoind.sh"
eclair1:
image: lnzap/eclair:0.10.0.strike.2
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.1.31
environment:
- JAVA_OPTS=-Declair.printToConsole -Dakka.loglevel=DEBUG -Dlogback.configurationFile=/eclair/logback-custom.xml
volumes:
- "eclair1:/data"
- "./conf/eclair/eclair1.conf:/eclair/eclair.conf"
- "./conf/eclair/logback-custom.xml:/eclair/logback-custom.xml"
ldknode1:
build: ./docker/ldknode
restart: unless-stopped
depends_on:
- electrs
networks:
testing_net:
ipv4_address: 172.30.1.32
command: /root/.ldknode 172.30.1.32:9735 regtest http://electrs:3002
volumes:
- "ldknode1:/root/.ldknode"
lnd2:
image: lightninglabs/lnd:v0.18.0-beta.1
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.2.1
command: --externalip=172.30.2.1 --externalip=lnd2:9735 --tlsextradomain=lnd2 --alias=lnd2 --color=#89CFF0
volumes:
- "lnd2:/root/.lnd"
- "./conf/lnd/lnd.conf:/root/.lnd/lnd.conf"
lndk2:
build: ./docker/lndk
restart: unless-stopped
depends_on:
- lnd2
entrypoint: ["/wait-for-lnd.sh", "lnd2", "5"]
command: --address=https://lnd2:10009 --cert-path=/root/.lnd/tls.cert --macaroon-path=/root/.lnd/data/chain/bitcoin/regtest/admin.macaroon --log-level=trace --grpc-host=0.0.0.0
environment:
- RUST_BACKTRACE=1
volumes:
- "lndk2:/root/.lndk"
- "lnd2:/root/.lnd:ro"
- "./docker/lndk/wait-for-lnd.sh:/wait-for-lnd.sh"
networks:
testing_net:
ipv4_address: 172.30.2.2
cln2:
image: elementsproject/lightningd:v24.05
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.2.30
entrypoint: ["/wait-for-bitcoind.sh"]
command: --network=regtest --addr=0.0.0.0:9735 --announce-addr=172.30.2.30:9735 --bitcoin-retry-timeout=180 --developer --dev-fast-gossip --dev-bitcoind-poll=2 --alias=cln2 --rgb=FF0000
volumes:
- "cln2:/root/.lightning"
- "bitcoind:/root/.lightning/bitcoin:ro"
- "./conf/cln/config:/root/.lightning/config"
- "./docker/cln/wait-for-bitcoind.sh:/wait-for-bitcoind.sh"
eclair2:
image: lnzap/eclair:0.10.0.strike.2
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.2.31
environment:
- JAVA_OPTS=-Declair.printToConsole -Dakka.loglevel=DEBUG -Dlogback.configurationFile=/eclair/logback-custom.xml
volumes:
- "eclair2:/data"
- "./conf/eclair/eclair2.conf:/eclair/eclair.conf"
- "./conf/eclair/logback-custom.xml:/eclair/logback-custom.xml"
ldknode2:
build: ./docker/ldknode
restart: unless-stopped
depends_on:
- electrs
networks:
testing_net:
ipv4_address: 172.30.2.32
command: /root/.ldknode 172.30.2.32:9735 regtest http://electrs:3002
volumes:
- "ldknode2:/root/.ldknode"
cln3:
image: elementsproject/lightningd:v24.05
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.3.30
entrypoint: ["/wait-for-bitcoind.sh"]
command: --network=regtest --addr=0.0.0.0:9735 --announce-addr=172.30.3.30:9735 --bitcoin-retry-timeout=180 --developer --dev-fast-gossip --dev-bitcoind-poll=2 --alias=cln3 --rgb=FF0000
volumes:
- "cln3:/root/.lightning"
- "bitcoind:/root/.lightning/bitcoin:ro"
- "./conf/cln/config:/root/.lightning/config"
- "./docker/cln/wait-for-bitcoind.sh:/wait-for-bitcoind.sh"
eclair3:
image: lnzap/eclair:0.10.0.strike.2
restart: unless-stopped
depends_on:
- bitcoind
networks:
testing_net:
ipv4_address: 172.30.3.31
environment:
- JAVA_OPTS=-Declair.printToConsole -Dakka.loglevel=DEBUG -Dlogback.configurationFile=/eclair/logback-custom.xml
volumes:
- "eclair3:/data"
- "./conf/eclair/eclair3.conf:/eclair/eclair.conf"
- "./conf/eclair/logback-custom.xml:/eclair/logback-custom.xml"
# --- Additional services ---
bitcoind:
image: lncm/bitcoind:v27.0
restart: unless-stopped
networks:
testing_net:
ipv4_address: 172.30.1.1
volumes:
- "bitcoind:/data/.bitcoin"
- "./conf/bitcoind/bitcoin.conf:/data/.bitcoin/bitcoin.conf"
electrs:
image: blockstream/esplora:electrs-cd9f90c115751eb9d2bca9a4da89d10d048ae931
platform: linux/amd64
depends_on:
- bitcoind
command: >
"/app/electrs_bitcoin/bin/electrs"
"-vvvv"
"--timestamp"
"--jsonrpc-import"
"--cookie=user:pass"
"--network=regtest"
"--daemon-rpc-addr=bitcoind:43782"
"--http-addr=0.0.0.0:3002"
ports:
- "3002:3002"
networks:
- testing_net
blockgen:
build: ./docker/blockgen
command: [ "/bin/sh", "/app/blockgen.sh" ]
networks:
testing_net:
ipv4_address: 172.30.9.1
volumes:
- "./docker/blockgen/blockgen.sh:/app/blockgen.sh"
depends_on:
- bitcoind
lnvisapi:
image: maxkotlan/ln-visualizer-api:v0.0.28
restart: on-failure
networks:
testing_net:
ipv4_address: 172.30.10.0
volumes:
- "lnd1:/lnd:ro"
environment:
LND_CERT_FILE: '/lnd/tls.cert'
LND_MACAROON_FILE: '/lnd/data/chain/bitcoin/regtest/readonly.macaroon'
LND_SOCKET: lnd1:10009
lnvisweb:
image: maxkotlan/ln-visualizer-web:v0.0.28
restart: on-failure
networks:
testing_net:
ipv4_address: 172.30.10.1
ports:
- '5646:80'
environment:
LN_VISUALIZER_API_URL: 'http://lnvisapi:5647'
volumes:
bitcoind:
lnd1:
lndk1:
cln1:
eclair1:
ldknode1:
lnd2:
lndk2:
cln2:
eclair2:
ldknode2:
cln3:
eclair3:
networks:
testing_net:
ipam:
driver: default
config:
- subnet: 172.30.0.0/16