forked from GaloyMoney/blink
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
331 lines (331 loc) · 10.1 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
version: "3"
services:
quickstart-test:
image: busybox
depends_on:
- apollo-router
- oathkeeper
- kratos
- kratos-pg
- galoy
- trigger
- redis
- mongodb
- mongodb-migrate
- price
- bitcoind
- bitcoind-signer
- lnd1
- lnd-outside-1
- postgres-bria
- fulcrum
- stablesats
- svix
- svix-pg
restart: on-failure:10
apollo-router:
image: ghcr.io/apollographql/router:v1.25.0
ports:
- 4004:4004
environment:
- APOLLO_ROUTER_SUPERGRAPH_PATH=/repo/dev/apollo-federation/supergraph.graphql
- APOLLO_ROUTER_CONFIG_PATH=/repo/dev/apollo-federation/router.yaml
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev:/repo/dev
oathkeeper:
image: oryd/oathkeeper:v0.40.4-distroless
ports:
- 4002:4455
- 4456:4456
command: serve -c /home/ory/oathkeeper.yml --sqa-opt-out
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/ory:/home/ory
kratos:
image: oryd/kratos:v1.0.0
ports:
- 4433:4433
- 4434:4434
entrypoint: sh -c
command: '"kratos migrate sql up -y -e && kratos serve -c /home/ory/kratos.yml --watch-courier --sqa-opt-out"'
environment:
DSN: postgres://dbuser:secret@kratos-pg:5432/default?sslmode=disable
links:
- kratos-pg:kratos-pg
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/ory:/home/ory
kratos-pg:
image: postgres:14.1
ports:
- 5433:5432
expose:
- "5432"
environment:
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=secret
- POSTGRES_DB=default
galoy:
image: us.gcr.io/galoy-org/galoy-app@sha256:61eec2c0747ce8e20e1a45f1d0492e955631e6d89f25cf2364c0727b27786cfe
command:
- -r
- /app/lib/services/tracing.js
- lib/servers/graphql-main-server.js
env_file: ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/.env.galoy
depends_on:
- trigger
- apollo-router
- oathkeeper
- kratos
- lnd1
- lnd-outside-1
- bria
- mongodb
- redis
- stablesats
networks:
default:
aliases:
- bats-tests
trigger:
image: us.gcr.io/galoy-org/galoy-app@sha256:61eec2c0747ce8e20e1a45f1d0492e955631e6d89f25cf2364c0727b27786cfe
command:
- -r
- /app/lib/services/tracing.js
- lib/servers/trigger.js
env_file: ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/.env.galoy
depends_on:
- lnd1
- bria
- mongodb
redis:
image: redis:7.0.8
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_DISABLE_COMMANDS=FLUSHDB,FLUSHALL
mongodb:
image: mongo:${MONGODB_VERSION:-6.0.5}
ports:
- 27017:27017
environment:
- MONGO_INITDB_DATABASE=galoy
- MONGODB_ADVERTISED_HOSTNAME=127.0.0.1
mongodb-migrate:
image: us.gcr.io/galoy-org/galoy-app-migrate@sha256:0a545c8ed8d8061166340c484035ed19f4f358fc124f9d2d81a37a3c4b95fdc2
depends_on:
- mongodb
environment:
- MONGODB_ADDRESS=mongodb
price:
image: us.gcr.io/galoy-org/price:edge
ports:
- 50051:50051
- 9464:9464
price-history:
image: us.gcr.io/galoy-org/price-history:edge
ports:
- 50052:50052
command: ./scripts/run-servers-dev.sh
environment:
- DB_HOST=postgres-price-history
- DB_PORT=5432
- DB_USER=galoy-price-usr
- DB_PWD=galoy-price-pwd
- DB_DB=galoy-price-history
- DB_POOL_MIN=1
- DB_POOL_MAX=5
- DB_DEBUG=false
depends_on:
- postgres-price-history
- price-history-migrate
price-history-migrate:
image: us.gcr.io/galoy-org/price-history-migrate:edge
ports: []
environment:
- DB_HOST=postgres-price-history
- DB_PORT=5432
- DB_USER=galoy-price-usr
- DB_PWD=galoy-price-pwd
- DB_DB=galoy-price-history
- DB_POOL_MIN=1
- DB_POOL_MAX=5
- DB_DEBUG=false
depends_on:
- postgres-price-history
postgres-price-history:
image: postgres:14.1
ports:
- 5432:5432
environment:
- POSTGRES_USER=galoy-price-usr
- POSTGRES_PASSWORD=galoy-price-pwd
- POSTGRES_DB=galoy-price-history
bitcoind:
image: lncm/bitcoind:v24.0.1
ports:
- 18443:18443
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/bitcoind/bitcoin.conf:/data/.bitcoin/bitcoin.conf
bitcoind-signer:
image: lncm/bitcoind:v24.0.1
ports:
- 18543:18443
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/bitcoind/bitcoin.conf:/data/.bitcoin/bitcoin.conf
depends_on:
- bitcoind
entrypoint:
- /bin/sh
- -c
command:
- |
bitcoind -connect=bitcoind:18444
lnd1:
image: lightninglabs/lnd:v0.16.2-beta
ports:
- 10009:10009
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/lnd.conf:/root/.lnd/lnd.conf
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/tls.key:/root/.lnd/tls.key
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/tls.cert:/root/.lnd/tls.cert
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/regtest/lnd1.wallet.db:/root/.lnd/wallet.db
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/regtest/lnd1.macaroons.db:/root/.lnd/macaroons.db
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/regtest/lnd1.admin.macaroon:/root/.lnd/admin.macaroon
depends_on:
- bitcoind
entrypoint:
- /bin/sh
- -c
command:
- |
mkdir -p /root/.lnd/data/chain/bitcoin/regtest/
cp /root/.lnd/wallet.db /root/.lnd/data/chain/bitcoin/regtest/wallet.db
cp /root/.lnd/macaroons.db /root/.lnd/data/chain/bitcoin/regtest/macaroons.db
cp /root/.lnd/admin.macaroon /root/.lnd/data/chain/bitcoin/regtest/admin.macaroon
/bin/lnd
lnd-outside-1:
image: lightninglabs/lnd:v0.16.2-beta
ports:
- 10012:10009
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/lnd.conf:/root/.lnd/lnd.conf
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/tls.key:/root/.lnd/tls.key
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/tls.cert:/root/.lnd/tls.cert
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/regtest/lnd-outside-1.wallet.db:/root/.lnd/wallet.db
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/regtest/lnd-outside-1.macaroons.db:/root/.lnd/macaroons.db
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/lnd/regtest/lnd-outside-1.admin.macaroon:/root/.lnd/admin.macaroon
entrypoint:
- /bin/sh
- -c
command:
- |
mkdir -p /root/.lnd/data/chain/bitcoin/regtest/
cp /root/.lnd/wallet.db /root/.lnd/data/chain/bitcoin/regtest/wallet.db
cp /root/.lnd/macaroons.db /root/.lnd/data/chain/bitcoin/regtest/macaroons.db
cp /root/.lnd/admin.macaroon /root/.lnd/data/chain/bitcoin/regtest/admin.macaroon
/bin/lnd
depends_on:
- bitcoind
bria:
image: us.gcr.io/galoy-org/bria:latest
ports:
- 2743:2743
- 2742:2742
environment:
- PG_CON=postgres://user:password@postgres-bria:5432/pg
- BITCOIND_SIGNER_ENDPOINT=https://bitcoind-signer:18443
command:
- bria
- daemon
- --config
- /repo/dev/bria.yml
- dev
- -x
- tpubDDDDGYiFda8HfJRc2AHFJDxVzzEtBPrKsbh35EaW2UGd5qfzrF2G87ewAgeeRyHEz4iB3kvhAYW1sH6dpLepTkFUzAktumBN8AXeXWE9nd1
- -d
- m/84h/0h/0h
depends_on:
bitcoind-signer:
condition: service_started
otel-agent:
condition: service_started
fulcrum:
condition: service_started
postgres-bria:
condition: service_healthy
restart: on-failure:10
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/:/repo
postgres-bria:
image: postgres:14.1
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=pg
healthcheck:
test:
- CMD-SHELL
- pg_isready
interval: 5s
timeout: 30s
retries: 5
fulcrum:
image: cculianu/fulcrum:latest
ports:
- 50001:50001
depends_on:
- bitcoind
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/fulcrum/fulcrum.conf:/fulcrum.conf
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/fulcrum/tls.key:/tls.key
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/fulcrum/tls.cert:/tls.cert
environment:
- DATA_DIR=/db
- SSL_CERTFILE=/tls.cert
- SSL_KEYFILE=/tls.key
command:
- Fulcrum
- /fulcrum.conf
stablesats:
image: us.gcr.io/galoy-org/stablesats-rs:latest
ports:
- 3325:3325
command:
- stablesats
- run
working_dir: /repo/dev
depends_on:
- otel-agent
restart: on-failure:10
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/:/repo
otel-agent:
ports:
- 4318:4318
image: otel/opentelemetry-collector-contrib:0.79.0
command:
- --config=/etc/otel-agent-config.yaml
environment:
- HONEYCOMB_DATASET=${HONEYCOMB_DATASET}
- HONEYCOMB_API_KEY=${HONEYCOMB_API_KEY}
volumes:
- ${HOST_PROJECT_PATH:-.}/${GALOY_QUICKSTART_PATH:-vendor/galoy-quickstart}/dev/otel-agent-config.yaml:/etc/otel-agent-config.yaml
svix:
image: svix/svix-server:v1.11
platform: linux/amd64
environment:
WAIT_FOR: "true"
SVIX_DB_DSN: postgresql://postgres:postgres@svix-pg/postgres
SVIX_JWT_SECRET: 8KjzRXrKkd9YFcNyqLSIY8JwiaCeRc6WK4UkMnSW
SVIX_WHITELIST_SUBNETS: '[0.0.0.0/0]'
SVIX_QUEUE_TYPE: memory
depends_on:
- svix-pg
ports:
- 8071:8071
extra_hosts:
- dockerhost-alias:host-gateway
svix-pg:
image: postgres:14.1
environment:
POSTGRES_PASSWORD: postgres