forked from PLEBNET-PLAYGROUND/plebnet-playground-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml.template
336 lines (335 loc) · 7.88 KB
/
docker-compose.yaml.template
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
#version: "3.7" for umbrel compatability
version: "3.4"
networks: {}
services:
bitcoind:
build:
context: ./bitcoin-signet
dockerfile: Dockerfile
args:
- TRIPLET=${TRIPLET}
links:
- tor
depends_on:
- tor
restart: unless-stopped
container_name: playground-bitcoind
environment:
TRIPLET: ${TRIPLET}
GET_COINS_ON_STARTUP: 'true'
expose:
- "38332"
- "38333"
- "38334"
ports:
- "38333:38333"
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/bitcoin_datadir
target: /root/.bitcoin/
lnd:
links:
- bitcoind
- tor
depends_on:
- bitcoind
- tor
environment:
TRIPLET: '${TRIPLET}'
LND_ALIAS: 'NewNode'
LND_LISTEN: 'playground-lnd:9735'
LND_RPCLISTEN: 'playground-lnd:10009'
LND_RESTLISTEN: 'playground-lnd:8080'
zmqpubrawblock: 'tcp://playground-bitcoind:28332'
zmqpubrawtx: 'tcp://playground-bitcoind:28333'
torsocks: 'playground-tor:9050'
torcontrol: 'playground-tor:9051'
tlsextradomain: 'playground-lnd'
rpchost: 'playground-bitcoind'
restart: unless-stopped
container_name: playground-lnd
build:
context: ./lnd-signet
dockerfile: Dockerfile
expose:
- "8080"
- "9735"
- "9911"
- "10009"
ports:
- "8080:8080"
- "9735:9735"
- "9911:9911"
- "10009:10009"
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/lnd_datadir
target: /root/.lnd/
cln:
links:
- bitcoind
- tor
depends_on:
- bitcoind
- tor
environment:
CLN_ALIAS: 'NewNode'
BITCOIN_RPC_HOST: 'playground-bitcoind'
TOR_PROXY: 'playground-tor:9050'
TOR_ADDR: 'playground-tor:9051'
LIGHTNINGD_PORT: '9736'
restart: unless-stopped
container_name: playground-cln
build:
context: ./cln-signet
dockerfile: Dockerfile
expose:
- "9736"
ports:
- "9736:9736"
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/cln_datadir
target: /root/.lightning/
tor:
restart: unless-stopped
container_name: playground-tor
build:
context: ./tor
dockerfile: Dockerfile
expose:
- 9050
- 9051
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/tor_datadir
target: /home/tor/.tor
- type: bind
source: ${oc.env:PWD}/volumes/tor_torrcdir
target: /usr/local/etc/tor
- type: bind
source: ${oc.env:PWD}/volumes/tor_servicesdir
target: /var/lib/tor/hidden_services
thunderhub:
container_name: playground-thub
depends_on:
- lnd
- bitcoind
links:
- bitcoind
- lnd
build:
context: ./thub
dockerfile: Dockerfile
restart: unless-stopped
stop_signal: SIGKILL
environment:
NO_VERSION_CHECK: "true"
ACCOUNT_CONFIG_PATH: '/data/thubConfig.yaml'
LOG_LEVEL: debug
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/lnd_datadir
target: /etc/lnd
read_only: true
- type: bind
source: ${oc.env:PWD}/volumes/thub_datadir
target: /data
ports:
- '3001:3000'
rtl:
container_name: playground-rtl
links:
- lnd
- bitcoind
depends_on:
- lnd
- bitcoind
restart: unless-stopped
environment:
LND_SERVER_URL: https://playground-lnd:8080/v1
MACAROON_PATH: /root/.lnd/data/chain/bitcoin/signet
RTL_CONFIG_PATH: /data/
LND_CONFIG_PATH: /root/.lnd/lnd.conf
BITCOIND_CONFIG_PATH: /etc/bitcoin/bitcoin.conf
RTL_SSO: 0
RTL_COOKIE_PATH: ''
LOGOUT_REDIRECT_LINK: ''
CONFIG_PATH: ''
LN_IMPLEMENTATION: LND
ports:
- "3000:3000"
image: shahanafarooqui/rtl:0.11.0
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/lnd_datadir
target: /root/.lnd/
read_only: true
- type: bind
source: ${oc.env:PWD}/volumes/bitcoin_datadir
target: /etc/bitcoin/
read_only: true
- type: bind
source: ${oc.env:PWD}/volumes/rtl_datadir
target: /data
notebook:
container_name: playground-notebook
links:
- lnd
- bitcoind
depends_on:
- lnd
- bitcoind
restart: unless-stopped
ports:
- "8888:8888"
build:
context: ./dashboard
dockerfile: Dockerfile
args:
- TRIPLET=${TRIPLET}
volumes:
- type: bind
source: ${oc.env:PWD}/notebooks
target: /notebooks
- type: bind
source: ${oc.env:PWD}/dashboard
target: /dashboard
- type: bind
source: ${oc.env:PWD}/volumes/lnd_datadir
target: /root/.lnd/
read_only: true
environment:
JUPYTER_NOTEBOOKS: /
JUPYTER_PORT: 8888
LND_DATADIR: /root/.lnd
working_dir: /
command:
- sh
- -c
- chmod +x /dashboard/jupyter_run.sh && /dashboard/jupyter_run.sh
dashboard:
container_name: playground-dashboard
links:
- lnd
- bitcoind
depends_on:
- lnd
- bitcoind
restart: unless-stopped
ports:
- "8050:8050"
build:
context: ./dashboard
dockerfile: Dockerfile
volumes:
- type: bind
source: ${oc.env:PWD}/dashboard
target: /dashboard
- type: bind
source: ${oc.env:PWD}/volumes/lnd_datadir
target: /root/.lnd/
read_only: true
environment:
JUPYTER_NOTEBOOKS: /dashboard
LND_DATADIR: /root/.lnd
GRAPH_TEST_DATA: describegraph.json
USE_TEST_DATA: ${USE_TEST_DATA}
working_dir: /dashboard
# use this command to spin up jupyter serving on localhost:8888
command:
- python
- dashboard.py
lndg:
image: ghcr.io/cryptosharks131/lndg:latest
container_name: playground-lndg
depends_on:
- lnd
volumes:
- ${oc.env:PWD}/volumes/lnd_datadir:/root/.lnd:ro
- ${oc.env:PWD}/volumes/lndg_datadir:/lndg/data:rw
command:
- sh
- -c
- python initialize.py -net 'signet' -server 'playground-lnd:10009' -d && sleep 20 && supervisord && python manage.py runserver 0.0.0.0:8000
ports:
- 8889:8000
docs:
links:
- tor
depends_on:
- tor
restart: unless-stopped
container_name: playground-docs
environment:
- TRIPLET=${TRIPLET}
build:
context: ${oc.env:PWD}/docs
dockerfile: Dockerfile
args:
- TRIPLET=${TRIPLET}
expose:
- "8000"
- "8008"
ports:
- "8008:8000"
volumes:
- type: bind
source: ${oc.env:PWD}/docs
target: /docs
db:
image: postgres:14.3
restart: always
container_name: playground-postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: myPassword
expose:
- "5432"
ports:
- "5432:5432"
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/postgres_datadir
target: /data
adminer:
links:
- db
depends_on:
- db
image: adminer
container_name: playground-adminer
restart: always
expose:
- 8080
ports:
- 8890:8080
lnbits:
container_name: playground-lnbits
depends_on:
- lnd
- bitcoind
- db
links:
- bitcoind
- lnd
- db
build:
context: ./lnbits
dockerfile: Dockerfile
restart: unless-stopped
stop_signal: SIGKILL
environment:
NO_VERSION_CHECK: "true"
ACCOUNT_CONFIG_PATH: '/data/lnbitsConfig.yaml'
LOG_LEVEL: debug
volumes:
- type: bind
source: ${oc.env:PWD}/volumes/lnd_datadir
target: /etc/lnd
read_only: true
- type: bind
source: ${oc.env:PWD}/volumes/lnbits_datadir
target: /data
ports:
- '5001:5000'