forked from egovernments/DIVOC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
318 lines (317 loc) · 10.1 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
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: dockerhub/registry-es
environment:
- connectionInfo_uri=jdbc:postgresql://db:5432/registry
- connectionInfo_username=postgres
- connectionInfo_password=postgres
- elastic_search_connection_url=es:9200
- search_provider=io.opensaber.registry.service.ElasticSearchService
ports:
- "8081:8081"
depends_on:
es:
condition: service_healthy
db:
condition: service_started
keycloak:
image: dockerhub/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
# - ./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
flagr:
image: checkr/flagr
environment:
FLAGR_DB_DBDRIVER: postgres
FLAGR_DB_DBCONNECTIONSTR: "$FLAGR_DB_DBCONNECTIONSTR"
HOST: 0.0.0.0
FLAGR_WEB_PREFIX: /config
ports:
- "18000:18000"
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: dockerhub/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
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: dockerhub/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
depends_on:
kafka:
condition: service_healthy
keycloak:
condition: service_healthy
registration_api:
image: dockerhub/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"
depends_on:
kafka:
condition: service_healthy
keycloak:
condition: service_healthy
analytics_feed:
image: dockerhub/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: dockerhub/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"
depends_on:
registry:
condition: service_started
certificate_signer:
image: dockerhub/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"
FACILITY_COUNTRY_CODE: "IND"
depends_on:
kafka:
condition: service_healthy
test_certificate_signer:
image: dockerhub/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"
depends_on:
kafka:
condition: service_healthy
nginx:
image: dockerhub/nginx
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
notification-service:
image: dockerhub/notification-service
ports:
- "8765:8765"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SMS_AUTH_KEY: xxxx
SENDER_EMAIL: [email protected]
SENDER_PASSWORD: xxxx
depends_on:
kafka:
condition: service_healthy
digilocker_support_api:
image: dockerhub/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: dockerhub/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:2379
CONFIGURATION_LAYER: "etcd"
depends_on:
kafka:
condition: service_healthy
etcd:
image: gcr.io/etcd-development/etcd:v3.5.1
entrypoint: /usr/local/bin/etcd
command:
- '--name=$ETCD_NAME'
- '--data-dir=$ETCD_DATA_DIR'
- '--listen-client-urls=$ETCD_LISTEN_CLIENT_URLS'
- '--advertise-client-urls=$ETCD_ADVERTISE_CLIENT_URLS'
- '--listen-peer-urls=$ETCD_LISTEN_PEER_URLS'
- '--initial-advertise-peer-urls=$ETCD_ADVERTISE_PEER_URLS'
- '--initial-cluster=$ETCD_NAME=$ETCD_INITIAL_CLUSTER'
- '--initial-cluster-token=$ETCD_INITIAL_CLUSTER_TOKEN'
- '--initial-cluster-state=$ETCD_INITIAL_CLUSTER_STATE'
- '--log-level=$ETCD_LOG_LEVEL'
- '--logger=$ETCD_LOGGER'
- '--log-outputs=$ETCD_LOG_OUTPUTS'
ports:
- $ETCD_CLIENT_CONNECTIONS_PORT:$ETCD_CLIENT_CONNECTIONS_PORT