-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose-local-basic.yml
320 lines (307 loc) · 9.6 KB
/
docker-compose-local-basic.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
version: "3.5"
services:
app-frontend:
image: dna/app-frontend
container_name: app-frontend
build:
context: ../packages/frontend/
dockerfile: ../../deployment/dockerfiles/app/result-frontend.Dockerfile
volumes:
- ../packages/frontend/nginx.conf:/etc/nginx/nginx.conf
environment:
- PROJECTSMO_BACKEND_HOST=app-backend
- PROJECTSMO_BACKEND_PORT=7171
- PROJECTSMO_FRONTEND_API_BASEURL=api
- PROJECTSMO_FRONTEND_OIDC_DISABLED=true
- PROJECTSMO_ENABLE_INTERNAL_USER_INFO=false
- PROJECTSMO_ENABLE_DATA_COMPLIANCE=false
- PROJECTSMO_ENABLE_REPORTS=true
- PROJECTSMO_ENABLE_JUPYTER_WORKSPACE=false
- PROJECTSMO_JUPYTER_NOTEBOOK_OIDC_POPUP_WAIT_TIME=5000
- PROJECTSMO_ENABLE_DATAIKU_WORKSPACE=false
- PROJECTSMO_ENABLE_MALWARE_SCAN_SERVICE=true
- PROJECTSMO_ENABLE_MALWARE_SCAN_ONEAPI_INFO=false
# - PROJECTSMO_MALWARE_SCAN_SWAGGER_UI_URL=
- PROJECTSMO_ENABLE_DATA_PIPELINE_SERVICE=false
- PROJECTSMO_ENABLE_ML_PIPELINE_SERVICE=false
- PROJECTSMO_ENABLE_STORAGE_SERVICE=true
- PROJECTSMO_STORAGE_MFE_APP_URL=http://localhost:8081
- PROJECTSMO_DNA_COMPANY_NAME=Company_Name
- PROJECTSMO_DEPLOY_VERSION=0.91
- PROJECTSMO_DNA_APPNAME_HEADER=DnA App
- PROJECTSMO_DNA_APPNAME_HOME=Data and Analytics
- PROJECTSMO_DNA_CONTACTUS_HTML=<div><p>There could be many places where you may need our help, and we are happy to support you. <br /> Please add your communication channels links here</p></div>
- PROJECTSMO_DNA_BRAND_LOGO_URL=/images/branding/logo-brand.png
- PROJECTSMO_DNA_APP_LOGO_URL=/images/branding/logo-app-white.png
- PROJECTSMO_ENABLE_NOTIFICATION=true
ports:
- 8080:3000
depends_on:
- app-backend
- dashboard-backend
- naas-backend
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
app-db:
image: bitnami/postgresql:11.14.0-debian-10-r28
container_name: app-db
restart: on-failure
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=db
volumes:
- ./kubernetes/helm/charts/bitnami-postgresql/files/docker-entrypoint-initdb.d/01-update-script.sql:/docker-entrypoint-initdb.d/01-updatescript.sql
ports:
- 5432:5432
app-backend:
image: dna/app-backend
container_name: app-backend
build:
context: ../packages/backend/
dockerfile: ../../deployment/dockerfiles/app/result-backend.Dockerfile
environment:
- API_DB_URL=jdbc:postgresql://app-db:5432/db
- API_DB_USER=postgres
- API_DB_PASS=postgres
- OIDC_DISABLED=true
- JWT_SECRET_KEY=
- INACTIVE_SOLUTION_DURATION_YRS=2
- JUPYTER_NOTEBOOK=false
- DATAIKU=false
- ITSMM=false
- ATTACHMENT_MALWARE_SCAN=false
- AVSCAN_URI=http://malware-backend:8181/avscan/api/v1
- AVSCAN_APP_ID=
- AVSCAN_API_KEY=
- DRD_INTERNAL_USER_ENABLED=false
- S3_EP_URL=http://minio:9000
- S3_BUCKET_NAME=dna
- S3_ACCESS_KEY=minioadmin
- S3_SECRET_KEY=minioadmin
- S3_MAX_PARALLEL_UPLOADTHREADS=20
- S3_MIN_FILESIZE=1024
- S3_MAX_FILESIZE=5242880
- VAULT_HOST=vault
- VAULT_PORT=8200
- VAULT_SCHEME=http
- VAULT_AUTHENTICATION=TOKEN
- VAULT_TOKEN=myroot
- VAULT_MOUNTPATH=secret
- VAULT_PATH=dnambc/avscan
- NAAS_BROKER=broker:29092
- LOGGING_ENVIRONMENT=DEV
- LOGGING_PATH=/tmp/app/logs/
- JWT_TOKEN_EXPIRY_TIME_IN_MIN=90
- DASHBOARD_URI=http://dashboard-backend:7173/dashboards
depends_on:
- app-db
- vault
- broker
ports:
- 7171:7171
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
dashboard-backend:
image: dna/dashboard-backend
container_name: dashboard-backend
build:
context: ../packages/dashboard-backend/
dockerfile: ../../deployment/dockerfiles/dashboard/dashboard-backend.Dockerfile
environment:
- API_DB_URL=jdbc:postgresql://app-db:5432/dashboard
- API_DB_USER=dashboard
- API_DB_PASS=dashboard
- DNA_URI=http://app-backend:7171
- DNA_AUTH_ENABLE=true
- LOGGING_ENVIRONMENT=DEV
- LOGGING_PATH=/tmp/dashboard/logs/
- JWT_SECRET_KEY=
depends_on:
- app-db
ports:
- 7173:7173
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
malware-backend:
image: dna/malware-backend
container_name: malware-backend
build:
context: ../packages/malware-scanner/
dockerfile: ../../deployment/dockerfiles/clamav/clamav-service.Dockerfile
environment:
- CLAMAV_BACKEND_URL=clamav
- CLAMAV_BACKEND_PORT=3310
- MAX_FILE_SIZE=3000MB
- MAX_REQUEST_SIZE=3000MB
- API_REQUEST_LIMIT=20
- WITH_IN=2
- RESTRICTED_URL_PATTERN=.*
- AUTH_API_HOST=http://app-backend:7171/api/subscription/validate
- TIME_UNIT=seconds
- LOGGING_ENVIRONMENT=DEV
- LOGGING_PATH=/tmp/clamav/log
depends_on:
- clamav
ports:
- 7174:8181
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
vault:
image: vault:1.13.3
container_name: vault
environment:
- VAULT_DEV_ROOT_TOKEN_ID=myroot
cap_add:
- IPC_LOCK
ports:
- 8200:8200
clamav:
image: mkodockx/docker-clamav:stretch-slim
container_name: clamav
ports:
- 3310:3310
naas-backend:
image: dna/naas-backend
container_name: naas-backend
build:
context: ../packages/naas/
dockerfile: ../../deployment/dockerfiles/naas/naas-backend.Dockerfile
environment:
- API_DB_URL=jdbc:postgresql://app-db:5432/db
- API_DB_USER=postgres
- API_DB_PASS=postgres
- DNA_URI=http://app-backend:7171
- DNA_AUTH_ENABLE=false
- JWT_SECRET_KEY=
- DNA_USER_NOTIFICATION_PREF_GET_URI=/api/notification-preferences
- NAAS_BROKER=broker:29092
- NAAS_CENTRAL_TOPIC=dnaCentralEventTopic
- NAAS_CENTRALREAD_TOPIC=dnaCentralReadTopic
- NAAS_CENTRALDELTE_TOPIC=dnaCentralDeleteTopic
- MAX_POLL_RECORDS=5000
- POLL_TIME=5000
- LOGGING_ENVIRONMENT=DEV
- LOGGING_PATH=/tmp/naas/logs/
- DNA_MAIL_SERVER_PORT=25
- DNA_MAIL_SERVER_HOST=
depends_on:
- app-backend
- broker
ports:
- 7272:7272
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
zookeeper:
image: confluentinc/cp-zookeeper:7.0.1
container_name: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
broker:
image: confluentinc/cp-kafka:7.0.1
container_name: broker
ports:
- 29092:29092
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_INTERNAL:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092,PLAINTEXT_INTERNAL://broker:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
storage-frontend:
image: dna/storage-frontend
container_name: storage-frontend
build:
context: ../packages/storage-mfe/
dockerfile: ../../deployment/dockerfiles/storageService/storage-mfe.Dockerfile
volumes:
- ../packages/storage-mfe/nginx.conf:/etc/nginx/nginx.conf
environment:
- PROJECTSMO_CONTAINER_APP_URL=http://app-frontend:3000
- PROJECTSMO_FRONTEND_API_BASEURL=api
- PROJECTSMO_STORAGE_TOU_HTML=<div>I agree to <a href=\"#\" target=\"_blank\" rel=\"noopener noreferrer\">terms of use</a></div>
- PROJECTSMO_ENABLE_DATA_CLASSIFICATION_SECRET=false
ports:
- 8081:3000
depends_on:
- storage-backend
- app-frontend
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
storage-backend:
image: dna/storage-backend
container_name: storage-backend
build:
context: ../packages/storage-backend/
dockerfile: ../../deployment/dockerfiles/storageService/storage-be.Dockerfile
environment:
- MAX_FILE_SIZE=3000MB
- MAX_REQUEST_SIZE=3000MB
- VAULT_HOST=vault
- VAULT_PORT=8200
- VAULT_SCHEME=http
- VAULT_AUTHENTICATION=TOKEN
- VAULT_TOKEN=myroot
- VAULT_MOUNTPATH=secret
- VAULT_PATH=dna/minio
- DNA_URI=http://app-backend:7171
- DNA_AUTH_ENABLE=true
- JWT_SECRET_KEY=
- MINIO_ENDPOINT=http://minio:9000
- MINIO_ADMIN_ACCESS_KEY=minioadmin
- MINIO_ADMIN_SECRET_KEY=minioadmin
- MINIO_POLICY_VERSION=2012-10-17
- LOGGING_ENVIRONMENT=DEV
- ATTACHMENT_MALWARE_SCAN=false
- API_DB_USER=storage
- API_DB_PASS=storage123
- API_DB_URL=jdbc:postgresql://app-db:5432/storage
- NAAS_BROKER=broker:29092
ports:
- 7175:7175
depends_on:
- minio
- vault
- broker
- app-backend
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
minio:
image: minio/minio:latest
command: server /export --console-address ":9001"
ports:
- 9000:9000
- 9001:9001
deploy:
restart_policy:
condition: on-failure
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add myminio http://minio:9000 minioadmin minioadmin;
/usr/bin/mc rm -r --force myminio/dna;
/usr/bin/mc mb myminio/dna;
exit 0;
"