-
Notifications
You must be signed in to change notification settings - Fork 204
/
docker-compose-release.yml
208 lines (207 loc) · 5.73 KB
/
docker-compose-release.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
version: "3"
services:
redis:
image: redis
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
environment:
- POSTGRES_DB=registry
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
registry:
image: divoc/registry-es:1.23.3-generic
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
#command: java -Xms1024m -Xmx2048m -XX:+UseG1GC -Dserver.port=8081 -jar /home/opensaber/registry.jar
ports:
- "8081:8081"
depends_on:
es:
condition: service_healthy
db:
condition: service_started
keycloak:
image: divoc/keycloak:1.23.3-generic
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", "curl", "-f", "http://localhost:9990"]
interval: 30s
timeout: 10s
retries: 4
ports:
- "8080:8080"
- "9990:9990"
depends_on:
- db
flagr:
image: checkr/flagr
environment:
FLAGR_DB_DBDRIVER: registry
FLAGR_DB_DBCONNECTIONSTR: "$FLAGR_DB_DBCONNECTIONSTR"
HOST: 0.0.0.0
FLAGR_WEB_PREFIX: /config
ports:
- "18000:18000"
depends_on:
- db
zookeeper:
image: confluentinc/cp-zookeeper:latest
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: "2181"
ZOOKEEPER_TICK_TIME: "2000"
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
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:1.23.3-generic
environment:
REGISTRY_URL: "http://registry:8081"
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
KEYCLOAK_URL: "http://keycloak:8080/auth"
DB_HOST: db
ports:
- "8000:8000"
depends_on:
- kafka
- keycloak
registration-api:
image: divoc/registration_api:1.23.3-generic
ports:
- "8002:8002"
environment:
REDIS_URL: redis://redis:6379
AUTH_PRIVATE_KEY:
AUTH_PUBLIC_KEY:
REGISTRY_URL: "http://registry:8081"
KEYCLOAK_URL: "http://keycloak:8080/auth"
DB_HOST: db
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
depends_on:
- kafka
- keycloak
portal-api:
image: divoc/portal_api:1.23.3-generic
ports:
- "8001:8001"
environment:
REGISTRY_URL: "http://registry: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
- keycloak
analytics-feed:
image: divoc/analytics_feed:1.23.3-generic
environment:
CLICK_HOUSE_URL: tcp://clickhouse-server:9000?debug=true
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
depends_on:
- clickhouse-server
certificate-processor:
image: divoc/certificate_processor:1.23.3-generic
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
KEYCLOAK_URL: "http://keycloak:8080/auth"
ADMIN_API_CLIENT_SECRET: "$ADMIN_API_CLIENT_SECRET"
depends_on:
- registry
certificate-signer:
image: divoc/certificate_signer:1.23.3-generic
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
REDIS_URL: redis://redis:6379
depends_on:
- kafka
- redis
gateway:
image: divoc/gateway:1.23.3-generic
ports:
- "81:80"
depends_on:
- vaccination-api
- portal-api
- registration-api
notification-service:
image: divoc/notification-service:1.23.3-generic
ports:
- "8765:8765"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
SMS_AUTH_KEY: xxxx
SENDER_EMAIL: [email protected]
SENDER_PASSWORD: xxxx
depends_on:
- kafka
digilocker-support-api:
image: divoc/digilocker_support_api:1.23.3-generic
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
DIGILOCKER_HMAC_AUTHKEY: "UPDATE_KEY_GIVEN_IN_DIGILOCKER"
KEYCLOAK_URL: "http://keycloak:8080/auth"
certificate-api:
image: divoc/certificate_api:1.23.3-generic
ports:
- "4321:4321"
environment:
KEYCLOAK_URL: "http://keycloak:8080/auth"
KAFKA_BOOTSTRAP_SERVERS: kafka:9092
REGISTRY_URL: "http://registry:8081"
depends_on:
kafka:
condition: service_healthy