forked from stakwork/sphinx-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
385 lines (357 loc) · 8.81 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
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
version: "3.5"
services:
bitcoind:
image: lncm/bitcoind:v0.21.1
restart: on-failure
container_name: bitcoind.sphinx
volumes:
- ./bitcoind:/data/.bitcoin
ports:
- 18443:18443
- 8333:8333
- 28332:28332
- 28333:28333
alice-lnd:
image: lightninglabs/lnd:v0.14.3-beta.rc1
container_name: alice-lnd.sphinx
volumes:
- ./lnd/alice/.lnd:/root/.lnd
- ./lnd/setup:/lndsetup
ports:
- 9735:9735
- 10009:10009
- 38881:38881
command: --configfile=/lndsetup/alice.conf
bob-lnd:
image: lightninglabs/lnd:v0.14.3-beta.rc1
container_name: bob-lnd.sphinx
volumes:
- ./lnd/bob/.lnd:/root/.lnd
- ./lnd/setup:/lndsetup
ports:
- 9736:9735
- 10010:10010
- 38882:38882
command: --configfile=/lndsetup/bob.conf
carol-lnd:
image: lightninglabs/lnd:v0.14.3-beta.rc1
container_name: carol-lnd.sphinx
volumes:
- ./lnd/carol/.lnd:/root/.lnd
- ./lnd/setup:/lndsetup
ports:
- 9737:9735
- 10011:10011
- 38883:38883
command: --configfile=/lndsetup/carol.conf
lndsetup:
image: node:12-buster-slim
depends_on:
- alice-lnd
- bob-lnd
- carol-lnd
restart: "no"
entrypoint: ["node", "/lndsetup/index.js"]
volumes:
- ./lnd/alice/.lnd:/alice/.lnd
- ./lnd/setup:/lndsetup
- ./lnd/setup/nodes/nodes.js:/lndsetup/nodes.js
db:
image: postgres
container_name: db.sphinx
restart: on-failure
environment:
- POSTGRES_PASSWORD=sphinx
- POSTGRES_USER=postgres
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
- ./pgdata:/var/lib/postgresql/data
ports:
- 5433:5432
tribes:
image: sphinxlightning/sphinx-tribes:latest
container_name: tribes.sphinx
restart: on-failure
depends_on:
- db
environment:
- PORT=13000
- DATABASE_URL=postgres://postgres:[email protected]:5432/postgres?sslmode=disable
- LN_SERVER_BASE_URL=http://localhost:13000
volumes:
- ./tribes/script.sh:/app/script.sh
ports:
- 5002:5002
- 13007:13007
- 13000:13000
entrypoint:
- "sh"
- "-c"
- |
chmod +x /app/script.sh && source /app/script.sh && /app/sphinx-tribes
auth:
image: sphinxlightning/sphinx-auth:latest
container_name: auth.sphinx
restart: on-failure
depends_on:
- db
environment:
- JWT_KEY=19e0bb49bhyuibme
- HOST=localhost:9090
ports:
- 9090:9090
mqtt:
image: sphinxlightning/sphinx-mqtt:latest
container_name: mqtt.sphinx
restart: on-failure
depends_on:
- auth
ports:
- 1883:1883
meme:
image: bucko/sphinx-meme:latest
container_name: meme.sphinx
restart: on-failure
depends_on:
- db
volumes:
- ./memes:/app/files
environment:
- PORT=5555
- JWT_KEY=19e0bb49bhyuibme
- STORAGE_MODE=local
- LOCAL_DIR=app/files
- LOCAL_ENCRYPTION_KEY=88303a55f5829d9e35936364204bcb007fe330db649902fa1085a7bce3732347
- HOST=localhost:5555
- DATABASE_URL=postgres://postgres:[email protected]:5432/postgres?sslmode=disable
alice:
# image: sphinx-relay
image: sphinxlightning/sphinx-relay
container_name: alice.sphinx
user: root
restart: on-failure
depends_on:
- alice-lnd
entrypoint:
[
"node",
"/relay/dist/app.js",
"--config=/relay/configs/alice.json",
"--db=/relay/configs/alice-db.json",
]
volumes:
- ./relay:/relay/configs
- ./lnd/alice/.lnd:/relay/alice/.lnd
environment:
- NODE_ENV=${GITACTION_ENV:-development}
- PORT=3001
- TRIBES_HOST=host.docker.internal:13000
- MEDIA_HOST=localhost:5555
ports:
- 3001:3001
extra_hosts:
- "host.docker.internal:host-gateway"
bob:
# image: sphinx-relay
image: sphinxlightning/sphinx-relay
container_name: bob.sphinx
user: root
restart: on-failure
depends_on:
- bob-lnd
entrypoint:
[
"node",
"/relay/dist/app.js",
"--config=/relay/configs/bob.json",
"--db=/relay/configs/bob-db.json",
]
volumes:
- ./relay:/relay/configs
- ./lnd/bob/.lnd:/relay/bob/.lnd
environment:
- NODE_ENV=${GITACTION_ENV:-development}
- PORT=3002
- TRIBES_HOST=host.docker.internal:13000
- MEDIA_HOST=localhost:5555
ports:
- 3002:3002
extra_hosts:
- "host.docker.internal:host-gateway"
carol:
# image: sphinx-relay
image: sphinxlightning/sphinx-relay
container_name: carol.sphinx
user: root
restart: on-failure
depends_on:
- carol-lnd
entrypoint:
[
"node",
"/relay/dist/app.js",
"--config=/relay/configs/carol.json",
"--db=/relay/configs/carol-db.json",
]
volumes:
- ./relay:/relay/configs
- ./lnd/carol/.lnd:/relay/carol/.lnd
environment:
- NODE_ENV=${GITACTION_ENV:-development}
- PORT=3003
- TRIBES_HOST=host.docker.internal:13000
- MEDIA_HOST=localhost:5555
ports:
- 3003:3003
extra_hosts:
- "host.docker.internal:host-gateway"
relaysetup:
image: node:12-buster-slim
depends_on:
- alice
- bob
- carol
- lndsetup
- tribes
restart: on-failure
entrypoint: ["node", "/relay/setup/index.js"]
volumes:
- ./relay:/relay
- ./relay/nodes_partial/nodes_partial.json:/relay/nodes_partial.json
etcd:
image: "quay.io/coreos/etcd"
container_name: etcd.sphinx
profiles:
- aperture
environment:
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd.sphinx:2379
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379
command: "etcd -name etcd-meme-aperture"
aperture:
# image: "lightninglabs/aperture:v0.1.12-beta"
# hopefully this is a temporary replacement to use the new aperture
# support for a timeout caveat
image: "bucko/aperture:timeoutv2"
container_name: aperture.sphinx
profiles:
- aperture
ports:
# for now we will have aperture run on the default meme port
# so that it's easier to use this as a drop in replacement for any existing setups
- 5555:8081
volumes:
- ./aperture:/aperture
# using alice's lnd node as the backend for aperture
- ./lnd/alice/.lnd:/lnd
# want to restart on failure b/c the lightning node needs to be
# fully operational so that aperture can connect to it and successfully start
restart: on-failure
depends_on:
- etcd
- alice-lnd
entrypoint: ["aperture", "--configfile=/aperture/aperture.yaml"]
# an override service that runs everything in the
# depends_on list. Comment out to use overrides
exclude-services:
image: nginx
command: echo done
depends_on:
- bitcoind
- alice-lnd
- bob-lnd
- carol-lnd
- lndsetup
- db
- tribes
- auth
- mqtt
# - meme
- alice
- bob
- carol
- relaysetup
- aperture
- etcd
profiles:
- aperture
boltwall:
image: sphinxlightning/sphinx-boltwall
# image: tobi-boltwall
container_name: boltwall.sphinx
restart: on-failure
depends_on:
- boltwallsetup
volumes:
- ./boltwall/.env:/usr/src/app/.env
ports:
- 8444:8444
boltwallsetup:
image: node:12-buster-slim
restart: on-failure
entrypoint: ["node", "/boltwall/setup/index.js"]
volumes:
- ./boltwall:/boltwall
- ./boltwall/.env:/boltwall/.env
- ./lnd:/lnd
nav-fiber:
image: sphinxlightning/sphinx-nav-fiber
container_name: nav-fiber.sphinx
restart: on-failure
ports:
- 3000:3000
tribes-setup:
image: node:12-buster-slim
restart: on-failure
entrypoint: ["node", "/tribes/setup/index.js"]
depends_on:
- relaysetup
volumes:
- ./tribes:/tribes
- ./tribes/.env:/tribes/.env
- ./relay:/relay
jitsi-web:
extends:
file: ./jitsi/docker-compose.yml
service: web
container_name: jitsi-web.sphinx
networks:
meet.jitsi:
profiles:
- jitsi
prosody:
extends:
file: ./jitsi/docker-compose.yml
service: prosody
container_name: prosody.sphinx
networks:
meet.jitsi:
aliases:
- ${XMPP_SERVER:-xmpp.meet.jitsi}
profiles:
- jitsi
jicofo:
extends:
file: ./jitsi/docker-compose.yml
service: jicofo
container_name: jicofo.sphinx
depends_on:
- prosody
networks:
meet.jitsi:
profiles:
- jitsi
jvb:
extends:
file: ./jitsi/docker-compose.yml
service: jvb
container_name: jvb.sphinx
depends_on:
- prosody
networks:
meet.jitsi:
profiles:
- jitsi
networks:
default:
name: sphinx-stack
meet.jitsi: