-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose.yml
111 lines (110 loc) · 2.93 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
version: "3"
services:
integration-deps:
image: busybox
depends_on:
- otel-agent
- postgres
- bria
- bitcoind
- bitcoind-signer
postgres:
image: postgres:14.1
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=pg
bitcoind:
image: lncm/bitcoind:v24.0.1
ports: []
volumes:
- ${HOST_PROJECT_PATH:-.}/dev/bitcoind/bitcoin.conf:/data/.bitcoin/bitcoin.conf
bitcoind-signer:
image: lncm/bitcoind:v24.0.1
ports: []
volumes:
- ${HOST_PROJECT_PATH:-.}/dev/bitcoind/bitcoin.conf:/data/.bitcoin/bitcoin.conf
depends_on: [bitcoind]
entrypoint: ["/bin/sh", "-c"]
command:
- |
bitcoind -connect=bitcoind:18444
bria:
image: us.gcr.io/galoy-org/bria:latest
ports: []
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:-.}/:/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: []
depends_on: [bitcoind]
volumes:
- ${HOST_PROJECT_PATH:-.}/dev/fulcrum/fulcrum.conf:/fulcrum.conf
- ${HOST_PROJECT_PATH:-.}/dev/fulcrum/tls.key:/tls.key
- ${HOST_PROJECT_PATH:-.}/dev/fulcrum/tls.cert:/tls.cert
environment:
- DATA_DIR=/db
- SSL_CERTFILE=/tls.cert
- SSL_KEYFILE=/tls.key
command: ["Fulcrum", "/fulcrum.conf"]
integration-tests:
image: us.gcr.io/galoy-org/rust-concourse
depends_on:
- integration-deps
command: ["make","test-in-ci"]
env_file:
- ${TMP_ENV_CI:-.env.ci}
environment:
- RUST_BACKTRACE=1
- PG_HOST=postgres
- PG_PORT=5432
- BRIA_URL=http://bria:2742
- GALOY_GRAPHQL_URI=https://api.staging.galoy.io/graphql
working_dir: /repo
volumes:
- ./:/repo
- cargo-cache:/usr/local/cargo
otel-agent:
image: otel/opentelemetry-collector-contrib:0.57.2
command: ["--config=/etc/otel-agent-config.yaml"]
environment:
- HONEYCOMB_DATASET=${HONEYCOMB_DATASET}
- HONEYCOMB_API_KEY=${HONEYCOMB_API_KEY}
volumes:
- ./dev/otel-agent-config.yaml:/etc/otel-agent-config.yaml
volumes:
cargo-cache: