forked from stellar/wallet-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
54 lines (54 loc) · 1.39 KB
/
docker-compose.yaml
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
services:
db:
image: postgres:12-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_DB: wallet-backend
volumes:
- postgres-db:/var/lib/postgresql/data
ports:
- 5432:5432
api:
image: stellar/wallet-backend:development
build:
context: ./
platforms:
- "linux/amd64"
args:
STELLAR_CORE_VERSION: 21.0.0-1872.c6f474133.jammy
depends_on:
db:
condition: service_started
ports:
- 8001:8001
entrypoint: ""
command:
- sh
- -c
- |
./wallet-backend migrate up
./wallet-backend channel-account ensure 5
./wallet-backend serve
environment:
DATABASE_URL: postgres://postgres@db:5432/wallet-backend?sslmode=disable
PORT: 8001
SERVER_BASE_URL: http://localhost:8001
LOG_LEVEL: TRACE
WALLET_SIGNING_KEY: ${WALLET_SIGNING_KEY}
DISTRIBUTION_ACCOUNT_PRIVATE_KEY: ${DISTRIBUTION_ACCOUNT_PRIVATE_KEY}
CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE: ${CHANNEL_ACCOUNT_ENCRYPTION_PASSPHRASE}
ingest:
image: stellar/wallet-backend:development
depends_on:
db:
condition: service_started
entrypoint: ""
command:
- sh
- -c
- ./wallet-backend ingest
environment:
DATABASE_URL: postgres://postgres@db:5432/wallet-backend?sslmode=disable
volumes:
postgres-db:
driver: local