-
Notifications
You must be signed in to change notification settings - Fork 205
/
Copy pathdocker-compose.yml
366 lines (365 loc) · 12.3 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
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
version: "2.4"
services:
redis:
image: redis
ports:
- "6379:6379"
es:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ports:
- "9200:9200"
- "9300:9300"
healthcheck:
test: ["CMD", "curl", "-f", "localhost:9200/_cluster/health"]
interval: 30s
timeout: 10s
retries: 4
db:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=registry
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
volumes:
- ./flagr_dump.sql:/docker-entrypoint-initdb.d/flagr_dump.sql
registry:
image: divoc/registry-es
environment:
- connectionInfo_uri=jdbc:postgresql://db:5432/registry
- connectionInfo_username=postgres
- connectionInfo_password=postgres
- elastic_search_connection_url=es:9200
- search_providerName=dev.sunbirdrc.registry.service.ElasticSearchService
- registry_base_apis_enable=true
- signature_enabled=false
- taskExecutor_index_queueCapacity=100
- auditTaskExecutor_queueCapacity=100
- sunbird_sso_url=http://keycloak:8080/auth
- sunbird_sso_realm=divoc
- registry_perRequest_indexCreation_enabled=false
ports:
- "8081:8081"
depends_on:
es:
condition: service_healthy
db:
condition: service_started
keycloak:
image: divoc/keycloak
environment:
DB_VENDOR: postgres
DB_ADDR: db
DB_PORT: 5432
DB_DATABASE: registry
DB_USER: postgres
DB_PASSWORD: postgres
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
ENABLE_SEND_OTP: $ENABLE_SEND_OTP
COUNTRY_CALLING_CODE: $COUNTRY_CALLING_CODE
IS_COUNTRY_CODE_PREFIXED: $IS_COUNTRY_CODE_PREFIXED
PROXY_ADDRESS_FORWARDING: "true"
# - ./keycloak-mobile-number-login-spi/themes:/opt/jboss/keycloak/themes/
healthcheck:
test:
["CMD-SHELL", "curl -f http://localhost:9990/ || exit 1"]
interval: 30s
timeout: 10s
retries: 5
ports:
- "8080:8080"
- "9990:9990"
depends_on:
db:
condition: service_started
zookeeper:
image: confluentinc/cp-zookeeper:latest
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: "2181"
ZOOKEEPER_TICK_TIME: "2000"
kafka:
image: confluentinc/cp-kafka:5.2.5-10
depends_on:
zookeeper:
condition: service_started
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: "1"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_ADVERTISED_LISTENERS: "INTERNAL://kafka:9092,OUTSIDE://localhost:9094"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT"
KAFKA_INTER_BROKER_LISTENER_NAME: "INTERNAL"
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: "1"
healthcheck:
test:
["CMD", "kafka-topics", "--list", "--zookeeper", "zookeeper:2181"]
interval: 30s
timeout: 10s
retries: 4
clickhouse-server:
image: yandex/clickhouse-server
ports:
- "8123:8123"
- "9000:9000"
vaccination-api:
image: divoc/vaccination_api
environment:
REGISTRY_URL: "http://registry:8081"
REGISTRY_WITH_ES_URL: "http://registry-es:8081"
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
KEYCLOAK_URL: "http://keycloak:8080/auth"
DB_HOST: db
REDIS_URL: redis://redis:6379
ENABLE_KEYCLOAK: "true"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000"]
interval: 10s
timeout: 10s
retries: 10
ports:
- "8000:8000"
depends_on:
kafka:
condition: service_healthy
keycloak:
condition: service_healthy
portal-api:
image: divoc/portal_api
ports:
- "8001:8001"
environment:
REGISTRY_URL: "http://registry:8081"
REGISTRY_WITH_ES_URL: "http://registry-es:8081"
KEYCLOAK_URL: "http://keycloak:8080/auth"
CLICK_HOUSE_URL: tcp://clickhouse-server:9000?debug=true
ADMIN_API_CLIENT_SECRET: "$ADMIN_API_CLIENT_SECRET"
DB_HOST: db
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
ETCD_URL: $ETCD_URL
ETCD_AUTH_ENABLED: $ETCD_AUTH_ENABLED
ETCD_USERNAME: $ETCD_USERNAME
ETCD_PASSWORD: $ETCD_PASSWORD
LOG_LEVEL: "$LOG_LEVEL"
depends_on:
kafka:
condition: service_healthy
keycloak:
condition: service_healthy
registration-api:
image: divoc/registration_api
ports:
- "8002:8002"
environment:
REDIS_URL: redis://redis:6379
REGISTRY_URL: "http://registry:8081"
REGISTRY_WITH_ES_URL: "http://registry-es:8081"
KEYCLOAK_URL: "http://keycloak:8080/auth"
DB_HOST: db
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
# in min
CACHE_TTL: 60
AUTH_PRIVATE_KEY: "$AUTH_PRIVATE_KEY"
AUTH_PUBLIC_KEY: "$AUTH_PUBLIC_KEY"
ETCD_URL: $ETCD_URL
ETCD_AUTH_ENABLED: $ETCD_AUTH_ENABLED
ETCD_USERNAME: $ETCD_USERNAME
ETCD_PASSWORD: $ETCD_PASSWORD
MOSIP_AUTH_TOKEN: $MOSIP_AUTH_TOKEN
MOSIP_OTP_URL: $MOSIP_BASE_URL/idauthentication/v1/otp/$MOSIP_MISP_LICENSE_KEY/$MOSIP_PARTNER_ID/$MOSIP_PARTNER_API_KEY
MOSIP_AUTH_URL: $MOSIP_BASE_URL/idauthentication/v1/auth/$MOSIP_MISP_LICENSE_KEY/$MOSIP_PARTNER_ID/$MOSIP_PARTNER_API_KEY
MOSIP_KYC_URL: $MOSIP_BASE_URL/idauthentication/v1/kyc/$MOSIP_MISP_LICENSE_KEY/$MOSIP_PARTNER_ID/$MOSIP_PARTNER_API_KEY
MOSIP_PRIVATE_KEY: $MOSIP_PRIVATE_KEY
MOSIP_PUBLIC_KEY: $MOSIP_PUBLIC_KEY
MOSIP_IDA_CERT_KEY: $MOSIP_IDA_CERT_KEY
LOG_LEVEL: "$LOG_LEVEL"
depends_on:
kafka:
condition: service_healthy
keycloak:
condition: service_healthy
analytics-feed:
image: divoc/analytics_feed
environment:
CLICK_HOUSE_URL: tcp://clickhouse-server:9000?debug=true
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
depends_on:
clickhouse-server:
condition: service_started
certificate-processor:
image: divoc/certificate_processor
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
REGISTRY_WITH_ES_URL: "http://registry-es:8081"
KEYCLOAK_URL: "http://keycloak:8080/auth"
ADMIN_API_CLIENT_SECRET: "$ADMIN_API_CLIENT_SECRET"
REDIS_URL: "redis://redis:6379"
ENABLE_PROGRAM_ID_CACHING_KEY: "true"
ENABLE_CREATE_RECIPIENT_IN_KEYCLOAK_SERVICE: "true"
ENABLE_REVOKE_CERTIFICATION_SERVICE: "true"
depends_on:
registry:
condition: service_started
certificate-signer:
image: divoc/certificate_signer
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
REGISTRY_WITH_ES_URL: "http://registry-es:8081"
REDIS_URL: redis://redis:6379
CERTIFICATE_NAMESPACE: "https://cowin.gov.in/credentials/vaccination/v1"
CERTIFICATE_NAMESPACE_V2: "https://cowin.gov.in/credentials/vaccination/v2"
CERTIFICATE_CONTROLLER_ID: "https://cowin.gov.in/"
CERTIFICATE_PUBKEY_ID: "https://example.com/i/india"
CERTIFICATE_DID: "did:india"
CERTIFICATE_ISSUER: "https://cowin.gov.in/"
CERTIFICATE_BASE_URL: "https://cowin.gov.in/vaccine/"
CERTIFICATE_FEEDBACK_BASE_URL: "https://cowin.gov.in/?"
CERTIFICATE_INFO_BASE_URL: "https://cowin.gov.in/?"
CERTIFICATE_PUBLIC_KEY: "$CERTIFICATE_SIGNER_PUBLIC_KEY"
CERTIFICATE_PRIVATE_KEY: "$CERTIFICATE_SIGNER_PRIVATE_KEY"
SIGNING_KEY_TYPE: "$SIGNING_KEY_TYPE"
FACILITY_COUNTRY_CODE: "IND"
ETCD_URL: $ETCD_URL
ETCD_AUTH_ENABLED: $ETCD_AUTH_ENABLED
ETCD_USERNAME: $ETCD_USERNAME
ETCD_PASSWORD: $ETCD_PASSWORD
CONFIGURATION_LAYER: "etcd"
depends_on:
kafka:
condition: service_healthy
test-certificate-signer:
image: divoc/test_certificate_signer
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
REGISTRY_WITH_ES_URL: "http://registry-es:8081"
REDIS_URL: redis://redis:6379
CERTIFICATE_NAMESPACE: "https://cowin.gov.in/credentials/testCertificate/v1"
CERTIFICATE_CONTROLLER_ID: "https://cowin.gov.in/"
CERTIFICATE_PUBKEY_ID: "https://example.com/i/india"
CERTIFICATE_DID: "did:india"
CERTIFICATE_ISSUER: "https://cowin.gov.in/"
CERTIFICATE_BASE_URL: "https://cowin.gov.in/test/"
CERTIFICATE_FEEDBACK_BASE_URL: "https://cowin.gov.in/?"
CERTIFICATE_INFO_BASE_URL: "https://cowin.gov.in/?"
CERTIFICATE_PUBLIC_KEY: "$CERTIFICATE_TEST_SIGNER_PUBLIC_KEY"
CERTIFICATE_PRIVATE_KEY: "$CERTIFICATE_TEST_SIGNER_PRIVATE_KEY"
SIGNING_KEY_TYPE: "$SIGNING_KEY_TYPE"
depends_on:
kafka:
condition: service_healthy
gateway:
image: divoc/gateway
ports:
- "80:80"
depends_on:
vaccination-api:
condition: service_started
portal-api:
condition: service_started
registration-api:
condition: service_started
digilocker-support-api:
condition: service_started
# public-app:
# image: divoc/public-app
# depends_on:
# vaccination-api:
# condition: service_started
# portal-api:
# condition: service_started
# registration-api:
# condition: service_started
# digilocker-support-api:
# condition: service_started
notification-service:
image: divoc/notification-service
ports:
- "8765:8765"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SMS_AUTH_KEY: xxxx
SENDER_EMAIL: [email protected]
SENDER_PASSWORD: xxxx
ETCD_URL: $ETCD_URL
ETCD_AUTH_ENABLED: $ETCD_AUTH_ENABLED
ETCD_USERNAME: $ETCD_USERNAME
ETCD_PASSWORD: $ETCD_PASSWORD
LOG_LEVEL: "$LOG_LEVEL"
depends_on:
kafka:
condition: service_healthy
digilocker-support-api:
image: divoc/digilocker_support_api
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
REGISTRY_WITH_ES_URL: "http://registry-es:8081"
DIGILOCKER_HMAC_AUTHKEY: "UPDATE_KEY_GIVEN_IN_DIGILOCKER"
KEYCLOAK_URL: "http://keycloak:8080/auth"
REGISTRATION_API_PUBLIC_KEY: "$REGISTRATION_API_PUBLIC_KEY"
depends_on:
kafka:
condition: service_healthy
keycloak:
condition: service_healthy
certificate-api:
image: divoc/certificate_api
ports:
- "4321:4321"
environment:
KEYCLOAK_URL: "http://keycloak:8080/auth"
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
AUTH_PUBLIC_KEY: "$CERTIFICATE_API_AUTH_PUBLIC_KEY"
CERTIFICATE_PUBLIC_KEY: "$CERTIFICATE_API_PUBLIC_KEY"
EU_CERTIFICATE_PUBLIC_KEY: "$EU_CERTIFICATE_PUBLIC_KEY"
CERTIFICATE_PRIVATE_KEY: "$CERTIFICATE_API_PRIVATE_KEY"
EU_CERTIFICATE_PRIVATE_KEY: "$EU_CERTIFICATE_PRIVATE_KEY"
SHC_CERTIFICATE_PRIVATE_KEY: "$SHC_CERTIFICATE_PRIVATE_KEY"
EU_CERTIFICATE_EXPIRY: 12
SHC_CERTIFICATE_EXPIRY: 12
CERTIFICATE_ISSUER: "https://divoc.dev"
FHIR_PUBLIC_HEALTH_AUTHORITY: "Govt Of India"
DISEASE_CODE: "COVID-19"
REDIS_URL: redis://redis:6379
REDIS_KEY_EXPIRE: 172800
REDIS_ENABLED: "true"
ETCD_URL: $ETCD_URL
ETCD_AUTH_ENABLED: $ETCD_AUTH_ENABLED
CONFIGURATION_LAYER: "etcd"
ETCD_USERNAME: $ETCD_USERNAME
ETCD_PASSWORD: $ETCD_PASSWORD
FACILITY_COUNTRY_CODE: $FACILITY_COUNTRY_CODE
depends_on:
kafka:
condition: service_healthy
etcd:
image: gcr.io/etcd-development/etcd:v3.5.1
entrypoint: /usr/local/bin/etcd
environment:
ETCD_NAME: '$ETCD_NAME'
ETCD_DATA_DIR: '$ETCD_DATA_DIR'
ETCD_LISTEN_CLIENT_URLS: '$ETCD_LISTEN_CLIENT_URLS'
ETCD_ADVERTISE_CLIENT_URLS: '$ETCD_ADVERTISE_CLIENT_URLS'
ETCD_LISTEN_PEER_URLS: '$ETCD_LISTEN_PEER_URLS'
ETCD_INITIAL_ADVERTISE_PEER_URLS: '$ETCD_ADVERTISE_PEER_URLS'
ETCD_INITIAL_CLUSTER: '$ETCD_NAME=$ETCD_INITIAL_CLUSTER'
ETCD_INITIAL_CLUSTER_TOKEN: '$ETCD_INITIAL_CLUSTER_TOKEN'
ETCD_INITIAL_CLUSTER_STATE: '$ETCD_INITIAL_CLUSTER_STATE'
ETCD_LOG_LEVEL: '$ETCD_LOG_LEVEL'
ETCD_LOGGER: '$ETCD_LOGGER'
ETCD_LOG_OUTPUTS: '$ETCD_LOG_OUTPUTS'
ports:
- $ETCD_CLIENT_CONNECTIONS_PORT:$ETCD_CLIENT_CONNECTIONS_PORT
- $ETCD_PEER_CONNECTIONS_PORT:$ETCD_PEER_CONNECTIONS_PORT