-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
293 lines (275 loc) · 6.61 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
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
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: services/indy_pool
dockerfile: indy-pool-kiva.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: "${PROTOCOL_GATEWAY_IMAGE}"
environment:
- AUTH0_ENABLED=${AUTH0_ENABLED:-false}
env_file:
- services/gateway/test.env
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
protocol-auth-db:
image: postgres:11
container_name: protocol-auth-db
command: postgres -c logging_collector=on -c log_destination=stderr
env_file:
- services/auth_db/test.env
networks:
- agency-network
depends_on:
- protocol-identity-wallet-db
tty: true
protocol-identity-db:
image: postgres:11
container_name: protocol-identity-db
command: postgres -c logging_collector=on -c log_destination=stderr
shm_size: '2gb'
env_file:
- services/identity_db/test.env
networks:
- agency-network
depends_on:
- protocol-identity-template-db
tty: true
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
env_file:
- services/identity_template_db/test.env
networks:
- agency-network
depends_on:
- aries-key-guardian
tty: true
protocol-identity-wallet-db:
image: postgres:11
container_name: protocol-identity-wallet-db
command: postgres -c logging_collector=on -c log_destination=stderr
volumes:
- ./services/identity_wallet_db/create_scripts:/docker-entrypoint-initdb.d/
env_file:
- services/identity_wallet_db/test.env
networks:
- agency-network
depends_on:
- aries-guardianship-agency
tty: true
protocol-bio-auth-service:
image: "${BIO_AUTH_SERVICE_IMAGE}"
container_name: protocol-bio-auth-service
ports:
- "8081:8080"
env_file:
- services/bio_auth_service/test.env
networks:
- agency-network
depends_on:
- protocol-identity-template-db
tty: true
protocol-bioanalyzer-service:
image: "${BIOANALYZER_SERVICE_IMAGE}"
container_name: protocol-bioanalyzer-service
working_dir: /app
env_file:
- services/bioanalyzer_service/test.env
ports:
- "8089:8080"
networks:
- agency-network
depends_on:
- protocol-bio-auth-service
tty: true
aries-guardianship-agency:
image: "${ARIES_GUARDIANSHIP_AGENCY_IMAGE}"
container_name: aries-guardianship-agency
working_dir: /www
env_file:
- services/aries_guardianship_agency/test.env
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
aries-key-guardian:
image: "${ARIES_KEY_GUARDIAN_IMAGE}"
container_name: aries-key-guardian
working_dir: /www
env_file:
- services/aries-key-guardian/test.env
ports:
- "3005:3003"
expose:
- "3005"
networks:
- agency-network
tty: true
depends_on:
- protocol-auth-db
kiva-controller:
image: "${KIVA_CONTROLLER_IMAGE}"
container_name: kiva-controller
working_dir: /www
env_file:
- services/kiva_controller/test.env
ports:
- "3011:3011"
expose:
- "3011"
networks:
- agency-network
tty: true
depends_on:
- aries-key-guardian
fsp-controller:
image: "${FSP_CONTROLLER_IMAGE}"
container_name: fsp-controller
working_dir: /www
env_file:
- services/fsp_controller/test.env
ports:
- "3013:3013"
expose:
- "3013"
networks:
- agency-network
tty: true
depends_on:
- protocol-identity-db
demo-controller:
image: "${DEMO_CONTROLLER_IMAGE}"
container_name: demo-controller
working_dir: /www
env_file:
- services/demo_controller/test.env
ports:
- "3014:3014"
expose:
- "3014"
networks:
- agency-network
tty: true
depends_on:
- fsp-controller
tails-server:
image: kivaprotocol/tails-server:latest
container_name: tails-server
ports:
- 6543:6543
networks:
- agency-network
depends_on:
- protocol-indy-pool
env_file:
- services/tails-server/test.env
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.16-1_0.7.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"
env_file:
- services/multitenant/test.env
# 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"
]
ssirius:
build:
context: services/ssirius
dockerfile: ssirius.dockerfile
container_name: ssirius
networks:
- agency-network
ports:
- "7567:7567"
profiles:
- frontend
depends_on:
- protocol-indy-pool
- fingerprint_api
tty: true
fingerprint_api:
build:
context: .
dockerfile: services/fingerprint-simulator/simulator.dockerfile
container_name: fingerprint_api
networks:
- agency-network
depends_on:
- protocol-indy-pool
ports:
- "9907:9907"
profiles:
- frontend
tty: true