-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathdocker-compose.yml
169 lines (168 loc) · 5.76 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
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:
LOG_LEVEL: debug
PORT: 80
SEED_FILE_LOCATION: /workspace/seed.yml
KEY_FILE: /workspace/private-key.pem
OPEN_PAYMENTS_URL: ${CLOUD_NINE_OPEN_PAYMENTS_URL:-https://cloud-nine-wallet-backend}
AUTH_SERVER_DOMAIN: ${CLOUD_NINE_AUTH_SERVER_DOMAIN:-http://localhost:3006}
TESTNET_AUTOPEER_URL: ${TESTNET_AUTOPEER_URL}
GRAPHQL_URL: http://cloud-nine-wallet-backend:3001/graphql
SIGNATURE_VERSION: 1
SIGNATURE_SECRET: iyIgCprjb9uL8wFckR+pLEkJWMB7FJhgkvqhTQR/964=
IDP_SECRET: 2pEcn2kkCclbOHQiGNEwhJ0rucATZhrA807HTm2rNXE=
DISPLAY_NAME: Cloud Nine Wallet
DISPLAY_ICON: wallet-icon.svg
volumes:
- ../cloud-nine-wallet/seed.yml:/workspace/seed.yml
- ../cloud-nine-wallet/private-key.pem:/workspace/private-key.pem
depends_on:
cloud-nine-backend:
condition: service_healthy
cloud-nine-backend:
hostname: cloud-nine-wallet-backend
image: rafiki-backend
build:
context: ../..
dockerfile: ./packages/backend/Dockerfile.dev
volumes:
- type: bind
source: ../../packages/backend/src
target: /home/rafiki/packages/backend/src
read_only: true
restart: always
privileged: true
ports:
- '3000:80'
- '3001:3001'
- '3002:3002'
- "9229:9229"
networks:
- rafiki
environment:
NODE_ENV: ${NODE_ENV:-development}
INSTANCE_NAME: CLOUD-NINE
TRUST_PROXY: ${TRUST_PROXY}
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: ${CLOUD_NINE_AUTH_SERVER_DOMAIN:-http://cloud-nine-wallet-auth:3006}
AUTH_SERVER_INTROSPECTION_URL: http://cloud-nine-wallet-auth:3007
ILP_ADDRESS: ${ILP_ADDRESS:-test.cloud-nine-wallet}
STREAM_SECRET: BjPXtnd00G2mRQwP/8ZpwyZASOch5sUXT5o0iR5b5wU=
API_SECRET: iyIgCprjb9uL8wFckR+pLEkJWMB7FJhgkvqhTQR/964=
OPEN_PAYMENTS_URL: ${CLOUD_NINE_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
WALLET_ADDRESS_URL: ${CLOUD_NINE_WALLET_ADDRESS_URL:-https://cloud-nine-wallet-backend/.well-known/pay}
ILP_CONNECTOR_URL: ${CLOUD_NINE_CONNECTOR_URL:-http://cloud-nine-wallet-backend:3002}
ENABLE_TELEMETRY: true
KEY_ID: 7097F83B-CB84-469E-96C6-2141C72E22C0
depends_on:
- shared-database
- shared-redis
healthcheck:
test: ["CMD", "wget", "--spider", "http://localhost:3001/healthz"]
start_period: 60s
start_interval: 5s
interval: 30s
retries: 1
timeout: 3s
cloud-nine-auth:
hostname: cloud-nine-wallet-auth
image: rafiki-auth
build:
context: ../..
dockerfile: ./packages/auth/Dockerfile.dev
volumes:
- type: bind
source: ../../packages/auth/src
target: /home/rafiki/packages/auth/src
read_only: true
restart: always
networks:
- rafiki
ports:
- '3003:3003'
- '3006:3006'
- "9230:9229"
- '3009:3009'
environment:
NODE_ENV: ${NODE_ENV:-development}
TRUST_PROXY: ${TRUST_PROXY}
AUTH_DATABASE_URL: postgresql://cloud_nine_wallet_auth:cloud_nine_wallet_auth@shared-database/cloud_nine_wallet_auth
AUTH_SERVER_URL: ${CLOUD_NINE_AUTH_SERVER_DOMAIN:-http://localhost:3006}
REDIS_URL: redis://shared-redis:6379/1
IDENTITY_SERVER_URL: http://localhost:3030/mock-idp/
IDENTITY_SERVER_SECRET: 2pEcn2kkCclbOHQiGNEwhJ0rucATZhrA807HTm2rNXE=
COOKIE_KEY: 42397d1f371dd4b8b7d0308a689a57c882effd4ea909d792302542af47e2cd37
ADMIN_API_SECRET: rPoZpe9tVyBNCigm05QDco7WLcYa0xMao7lO5KG1XG4=
depends_on:
- shared-database
- shared-redis
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.dev
volumes:
- type: bind
source: ../../packages/frontend/app
target: /home/rafiki/packages/frontend/app
read_only: true
restart: always
networks:
- rafiki
ports:
- '3010:3010'
environment:
PORT: 3010
LOG_LEVEL: debug
NODE_ENV: ${NODE_ENV:-development}
GRAPHQL_URL: http://cloud-nine-wallet-backend:3001/graphql
OPEN_PAYMENTS_URL: https://cloud-nine-wallet-backend/
ENABLE_INSECURE_MESSAGE_COOKIE: true
AUTH_ENABLED: false
SIGNATURE_VERSION: 1
SIGNATURE_SECRET: iyIgCprjb9uL8wFckR+pLEkJWMB7FJhgkvqhTQR/964=
depends_on:
- cloud-nine-backend
volumes:
database-data: # named volumes can be managed easier using docker-compose