This repository has been archived by the owner on May 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.all.yml
387 lines (371 loc) · 11.1 KB
/
docker-compose.all.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
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
version: '3.5'
networks:
agency-network:
name: agency-network
driver: bridge
ipam:
driver: default
config:
-
subnet: 10.0.0.0/24
services:
# indy pool needs a static ip configured in the pool_transactions_genesis so need to start it first
protocol-indy-pool:
build:
context: .
dockerfile: resources/indy-pool.dockerfile
args:
pool_ip: '10.0.0.2'
image: protocol-indy-pool
container_name: protocol-indy-pool
working_dir: /home/indy
ports:
- "9701:9701"
- "9702:9702"
- "9703:9703"
- "9704:9704"
- "9705:9705"
- "9706:9706"
- "9707:9707"
- "9708:9708"
networks:
agency-network:
ipv4_address: 10.0.0.2
protocol-gateway:
image: "kivaprotocol/protocol-gateway:0.0.17"
container_name: protocol-gateway
working_dir: /www
ports:
- "8080:8080"
expose:
- "8080"
networks:
- agency-network
depends_on:
- protocol-indy-pool
- protocol-bio-auth-service
tty: true
environment:
- NODE_ENV=LOCAL
protocol-auth-db:
image: postgres:11
container_name: protocol-auth-db
command: postgres -c logging_collector=on -c log_destination=stderr
networks:
- agency-network
depends_on:
- protocol-identity-wallet-db
tty: true
environment:
- POSTGRES_DB=authdb
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- POSTGRES_PORT=5432
- POSTGRES_HOST=protocol-auth-db
protocol-identity-db:
image: postgres:11
container_name: protocol-identity-db
command: postgres -c logging_collector=on -c log_destination=stderr
shm_size: '2gb'
networks:
- agency-network
depends_on:
- protocol-identity-template-db
tty: true
environment:
- POSTGRES_HOST=protocol-identity-db
- POSTGRES_DB=identitydb
- POSTGRES_PORT=5432
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
protocol-identity-template-db:
command: postgres -c logging_collector=on -c log_destination=stderr
image: postgres:11
container_name: protocol-identity-template-db
restart: always
networks:
- agency-network
depends_on:
- aries-key-guardian
tty: true
environment:
- POSTGRES_HOST=protocol-identity-template-db
- POSTGRES_DB=identitytemplatedb
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
protocol-identity-wallet-db:
image: postgres:11
container_name: protocol-identity-wallet-db
command: postgres -c logging_collector=on -c log_destination=stderr
volumes:
- ./resources/identity_wallet:/docker-entrypoint-initdb.d/
networks:
- agency-network
depends_on:
- aries-guardianship-agency
tty: true
environment:
- POSTGRES_HOST=protocol-identity-wallet-db
- POSTGRES_DB=wallets
- POSTGRES_PASSWORD=dbpass
- POSTGRES_USER=postgres
protocol-bio-auth-service:
image: "kivaprotocol/bioauth:0.0.21"
container_name: protocol-bio-auth-service
ports:
- "8081:8080"
networks:
- agency-network
depends_on:
- protocol-identity-template-db
tty: true
environment:
- POSTGRES_HOST=protocol-identity-template-db
- POSTGRES_PORT=5432
- POSTGRES_DB=identitytemplatedb
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- DD_TRACE_ENABLED=false
- DD_SERVICE_NAME=bio_auth_service
- DD_AGENT_HOST=localhost
- DD_TRACE_AGENT_PORT=8126
- DD_TRACE_REPORT_HOSTNAME=true
- BIOANALYZER_ENABLED=true
- BIOANALYZER_SERVICE_URL=http://protocol-bioanalyzer-service:8080
- BIOANALYZER_QUALITY_THRESHOLD=30
- REPLAY_ATTACK_ENABLED=false
- MAX_DIDS=100
- HASH_PEPPER=SOME_PEPPER
protocol-bioanalyzer-service:
image: "kivaprotocol/bioanalyzer:0.0.21"
container_name: protocol-bioanalyzer-service
working_dir: /app
ports:
- "8089:8080"
networks:
- agency-network
depends_on:
- protocol-bio-auth-service
tty: true
environment:
- DD_TRACE_ENABLED=false
- DD_SERVICE_NAME=bioanalyzer
- DD_AGENT_HOST=localhost
- DD_TRACE_AGENT_PORT=8126
- DD_TRACE_REPORT_HOSTNAME=true
aries-guardianship-agency:
image: "kivaprotocol/aries-guardianship-agency:0.0.50"
container_name: aries-guardianship-agency
working_dir: /www
ports:
- "3010:3010"
expose:
- "3010"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- agency-network
depends_on:
- protocol-indy-pool
tty: true
privileged: true
environment:
- NODE_ENV=LOCAL
- PUBLIC_URL=http://protocol-gateway:8080
- WALLET_DB_HOST=protocol-identity-wallet-db
- WALLET_DB_PORT=5432
- WALLET_DB_USER=postgres
- WALLET_DB_PASS=dbpass
- WALLET_DB_ADMIN_USER=postgres
- WALLET_DB_ADMIN_PASS=dbpass
- POSTGRES_PASSWORD=dbpass
- POSTGRES_USER=postgres
- POSTGRES_DB=wallets
- GENESIS_URL=http://localhost:9000/genesis
- STORAGE_PATH=/tmp/tails-files
- LOG_LEVEL=INFO
- TAILS_URL=http://tails-server:6543
- ACAPY_OUTBOUND_TRANSPORT=http
- ACAPY_ADMIN=[0.0.0.0,3021]
- ACAPY_ENDPOINT=http://multitenant:3020
- ACAPY_WEBHOOK_URL=http://aries-guardianship-agency:3010/v1/controller/multitenant
- ACAPY_ADMIN_API_KEY=adminApiKey
- ACAPY_LABEL=multitenant
- ACAPY_WALLET_NAME=multitenant_name
- ACAPY_WALLET_KEY=multitenant_key
- ACAPY_WALLET_TYPE=indy
- ACAPY_WALLET_STORAGE_TYPE=postgres_storage
- ACAPY_WALLET_SEED=0000000000000000000000000000Any1
- ACAPY_WALLET_STORAGE_CONFIG={"url":"wallets-db:5432","wallet_scheme":"MultiWalletSingleTable"}
- ACAPY_WALLET_STORAGE_CREDS={"account":"postgres","password":"dbpass","admin_account":"postgres","admin_password":"dbpass"}
- ACAPY_GENESIS_FILE=/home/indy/resources/pool_transactions_genesis_local_dev
- ACAPY_WALLET_LOCAL_DID=true
- ACAPY_LOG_LEVEL=info
- ACAPY_AUTO_PROVISION=true
- ACAPY_MULTITENANT=true
- ACAPY_MULTITENANT_ADMIN=true
- ACAPY_MULTITENANT_JWT_SECRET=jwtSecret
aries-key-guardian:
image: "kivaprotocol/aries-key-guardian:0.0.30"
container_name: aries-key-guardian
working_dir: /www
ports:
- "3005:3003"
expose:
- "3005"
networks:
- agency-network
tty: true
depends_on:
- protocol-auth-db
environment:
- TWILIO_ACCOUNT_SID=AC4c944d33cecb06a9ec4cd9ef5495ee26
- TWILIO_AUTH_TOKEN=94a71d617ae8214bd37b3b9b9a3d9c5f
- TWILIO_PHONE_NUMBER=+15005550006
- NODE_ENV=LOCAL
- HASH_PEPPER=SOME_PEPPER
- POSTGRES_DB=authdb
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
- POSTGRES_PORT=5432
- POSTGRES_HOST=protocol-auth-db
kiva-controller:
image: "kivaprotocol/kiva-controller:0.0.49"
container_name: kiva-controller
working_dir: /www
ports:
- "3011:3011"
expose:
- "3011"
networks:
- agency-network
tty: true
depends_on:
- aries-key-guardian
environment:
- NODE_ENV=LOCAL
- PORT=3011
- SELF_URL=http://kiva-controller:3011
- WALLET_ID=kivaWalletId
- WALLET_KEY=kivaWalletKey
- ADMIN_API_KEY=kivaApiKey
- SEED=000000000000000000000000Steward1
fsp-controller:
image: "kivaprotocol/fsp-controller:0.0.49"
container_name: fsp-controller
working_dir: /www
ports:
- "3013:3013"
expose:
- "3013"
networks:
- agency-network
tty: true
depends_on:
- protocol-identity-db
environment:
- NODE_ENV=LOCAL
- PORT=3013
- SELF_URL=http://fsp-controller:3013
- WALLET_ID=fspWalletId
- WALLET_KEY=fspWalletKey
- ADMIN_API_KEY=fspApiKey
- SEED=0000000000000000000000000000fsp1
- AUTH0_ALGORITHM=RS256
- AUTH0_DOMAIN=kiva-protocol-standalone.auth0.com
- POSTGRES_HOST=protocol-identity-db
- POSTGRES_DB=identitydb
- POSTGRES_PORT=5432
- POSTGRES_USER=dbuser
- POSTGRES_PASSWORD=dbpass
demo-controller:
image: "kivaprotocol/aries-controller:1.0.76"
container_name: demo-controller
working_dir: /www
ports:
- "3014:3014"
expose:
- "3014"
networks:
- agency-network
tty: true
depends_on:
- fsp-controller
environment:
- NODE_ENV=LOCAL
- PORT=3014
- SELF_URL=http://demo-controller:3014
- WALLET_ID=demoWalletId
- WALLET_KEY=demoWalletKey
- ADMIN_API_KEY=demoApiKey
- SEED=000000000000000000000000Steward2
- AUTH0_ALGORITHM=RS256
- AUTH0_DOMAIN=kiva-protocol-standalone.auth0.com
tails-server:
image: kivaprotocol/tails-server:latest
container_name: tails-server
ports:
- 6543:6543
networks:
- agency-network
depends_on:
- protocol-indy-pool
environment:
- MSYS_NO_PATHCONV=1
- DOCKERHOST=${APPLICATION_URL-$(docker run --rm --net=host eclipse/che-ip)}
- GENESIS_URL=${GENESIS_URL:-http://$DOCKERHOST:9000/genesis}
- STORAGE_PATH=${STORAGE_PATH:-/tmp/tails-files}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- TAILS_SERVER_URL=${TAILS_SERVER_URL:-http://$DOCKERHOST:6543}
command: >
tails-server
--host 0.0.0.0
--port 6543
--storage-path /tmp/tails-files
--log-level INFO
multitenant:
image: bcgovimages/aries-cloudagent:py36-1.15-1_0.6.0
container_name: multitenant
networks:
- agency-network
depends_on:
- protocol-indy-pool
- protocol-identity-wallet-db
- aries-guardianship-agency
- tails-server
ports:
- "3020:3020"
- "3021:3021"
expose:
- "3020"
- "3021"
# Have multitenant wait a few seconds until indy ledger is up
# Also for some reason inbound transport doesn't work via env args so using commmand line here
entrypoint: /bin/bash
command: [
"-c",
"sleep 14;
aca-py start \
--inbound-transport http '0.0.0.0' 3020"
]
environment:
- ACAPY_OUTBOUND_TRANSPORT=http
- ACAPY_ADMIN=[0.0.0.0,3021]
- ACAPY_ENDPOINT=http://protocol-gateway:8080/v2/multitenant
- ACAPY_WEBHOOK_URL=http://aries-guardianship-agency:3010/v1/controller/multitenant
- ACAPY_ADMIN_API_KEY=adminApiKey
- ACAPY_LABEL=multitenant
- ACAPY_WALLET_NAME=multitenant_name
- ACAPY_WALLET_KEY=multitenant_key
- ACAPY_WALLET_TYPE=indy
- ACAPY_WALLET_STORAGE_TYPE=postgres_storage
- ACAPY_WALLET_SEED=0000000000000000000000000000Any1
- ACAPY_WALLET_STORAGE_CONFIG={"url":"protocol-identity-wallet-db:5432","wallet_scheme":"MultiWalletSingleTable"}
- ACAPY_WALLET_STORAGE_CREDS={"account":"postgres","password":"dbpass","admin_account":"postgres","admin_password":"dbpass"}
- ACAPY_GENESIS_URL=http://aries-guardianship-agency:3010/genesis-file
- ACAPY_WALLET_LOCAL_DID=true
- ACAPY_LOG_LEVEL=info
- ACAPY_AUTO_PROVISION=true
- ACAPY_MULTITENANT=true
- ACAPY_MULTITENANT_ADMIN=true
- ACAPY_MULTITENANT_JWT_SECRET=jwtSecret