forked from interledger/rafiki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
134 lines (132 loc) · 3.92 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
name: c9
services:
cloud-nine-mock-ase:
hostname: cloud-nine-wallet
image: rafiki-mock-ase
build:
context: ../..
dockerfile: ./localenv/mock-account-servicing-entity/Dockerfile
restart: always
networks:
- rafiki
ports:
- '3030:80'
environment:
NODE_ENV: development
LOG_LEVEL: debug
PORT: 80
SEED_FILE_LOCATION: /workspace/seed.yml
KEY_FILE: /workspace/private-key.pem
volumes:
- ../cloud-nine-wallet/seed.yml:/workspace/seed.yml
- ../cloud-nine-wallet/private-key.pem:/workspace/private-key.pem
depends_on:
- cloud-nine-backend
cloud-nine-backend:
hostname: cloud-nine-wallet-backend
image: rafiki-backend
build:
context: ../..
dockerfile: ./packages/backend/Dockerfile
restart: always
privileged: true
ports:
- '3000:80'
- '3001:3001'
networks:
- rafiki
environment:
NODE_ENV: development
LOG_LEVEL: debug
ADMIN_PORT: 3001
CONNECTOR_PORT: 3002
OPEN_PAYMENTS_PORT: 80
DATABASE_URL: postgresql://cloud_nine_wallet_backend:cloud_nine_wallet_backend@shared-database/cloud_nine_wallet_backend
USE_TIGERBEETLE: ${USE_TIGERBEETLE-false}
TIGERBEETLE_CLUSTER_ID: ${TIGERBEETLE_CLUSTER_ID-0}
TIGERBEETLE_REPLICA_ADDRESSES: ${TIGERBEETLE_REPLICA_ADDRESSES-''}
AUTH_SERVER_GRANT_URL: http://cloud-nine-wallet-auth:3006
AUTH_SERVER_INTROSPECTION_URL: http://cloud-nine-wallet-auth:3007
ILP_ADDRESS: test.cloud-nine-wallet
STREAM_SECRET: BjPXtnd00G2mRQwP/8ZpwyZASOch5sUXT5o0iR5b5wU=
PUBLIC_HOST: http://cloud-nine-wallet-backend
OPEN_PAYMENTS_URL: http://cloud-nine-wallet-backend
WEBHOOK_URL: http://cloud-nine-wallet/webhooks
EXCHANGE_RATES_URL: http://cloud-nine-wallet/rates
REDIS_URL: redis://shared-redis:6379/0
PAYMENT_POINTER_URL: https://cloud-nine-wallet-backend/.well-known/pay
depends_on:
- shared-database
- shared-redis
cloud-nine-auth:
hostname: cloud-nine-wallet-auth
image: rafiki-auth
build:
context: ../..
dockerfile: ./packages/auth/Dockerfile
restart: always
networks:
- rafiki
ports:
- '3003:3003'
- '3006:3006'
environment:
NODE_ENV: development
AUTH_DATABASE_URL: postgresql://cloud_nine_wallet_auth:cloud_nine_wallet_auth@shared-database/cloud_nine_wallet_auth
depends_on:
- shared-database
cloud-nine-signatures:
hostname: cloud-nine-wallet-signatures
image: rafiki-postman-signatures
build:
context: ../..
dockerfile: ./localenv/local-http-signatures/Dockerfile
restart: always
ports:
- '3040:3000'
environment:
KEY_FILE: /workspace/private-key.pem
volumes:
- ../cloud-nine-wallet/private-key.pem:/workspace/private-key.pem
networks:
- rafiki
shared-database:
image: 'postgres:15' # use latest official postgres version
restart: unless-stopped
networks:
- rafiki
volumes:
- database-data:/var/lib/postgresql/data/ # persist data even if container shuts down
- ../cloud-nine-wallet/dbinit.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- '5432:5432'
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: postgres
shared-redis:
image: 'redis:7'
restart: unless-stopped
networks:
- rafiki
cloud-nine-admin:
hostname: cloud-nine-wallet-admin
image: rafiki-frontend
build:
context: ../..
dockerfile: ./packages/frontend/Dockerfile
restart: always
networks:
- rafiki
ports:
- '3010:3010'
environment:
PORT: 3010
GRAPHQL_URL: http://cloud-nine-wallet-backend:3001/graphql
OPEN_PAYMENTS_URL: https://cloud-nine-wallet-backend/
depends_on:
- cloud-nine-backend
volumes:
database-data: # named volumes can be managed easier using docker-compose
networks:
rafiki:
external: true