forked from buerokratt/Global-Classifier
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
371 lines (346 loc) · 10.5 KB
/
docker-compose.yml
File metadata and controls
371 lines (346 loc) · 10.5 KB
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
367
368
369
370
371
services:
ruuter-public:
container_name: ruuter-public
image: ruuter
environment:
- application.cors.allowedOrigins=http://localhost:8086,http://localhost:3001,http://localhost:3003,http://localhost:3004,http://localhost:8080,http://localhost:8000,http://localhost:8090
- application.httpCodesAllowList=200,201,202,204,400,401,403,500
- application.internalRequests.allowedIPs=127.0.0.1
- application.logging.displayRequestContent=true
- application.logging.displayResponseContent=true
- application.logging.printStackTrace=true
- application.internalRequests.disabled=true
- server.port=8086
volumes:
- ./DSL/Ruuter.public:/DSL
- ./constants.ini:/app/constants.ini
ports:
- 8086:8086
networks:
- bykstack
cpus: "0.5"
mem_limit: "512M"
ruuter-private:
container_name: ruuter-private
image: ruuter
environment:
- application.cors.allowedOrigins=http://localhost:3001,http://localhost:3003,http://localhost:8088,http://localhost:3002,http://localhost:3004,http://localhost:8000
- application.httpCodesAllowList=200,201,202,400,401,403,500
- application.internalRequests.allowedIPs=127.0.0.1
- application.logging.displayRequestContent=true
- application.logging.displayResponseContent=true
- application.logging.printStackTrace=true
- application.internalRequests.disabled=true
- server.port=8088
volumes:
- ./DSL/Ruuter.private:/DSL
- ./constants.ini:/app/constants.ini
ports:
- 8088:8088
networks:
- bykstack
cpus: "0.5"
mem_limit: "512M"
data-mapper:
container_name: data-mapper
image: data-mapper
environment:
- PORT=3000
- CONTENT_FOLDER=/data
volumes:
- ./DSL:/data
- ./DSL/DMapper/global-classifier/hbs:/workspace/app/views/global-classifier
- ./DSL/DMapper/global-classifier/lib:/workspace/app/lib
ports:
- 3000:3000
networks:
- bykstack
tim:
container_name: tim
image: tim
depends_on:
- tim-postgresql
environment:
- SECURITY_ALLOWLIST_JWT=ruuter-private,ruuter-public,data-mapper,resql,tim,tim-postgresql,chat-widget,authentication-layer,127.0.0.1,::1
- KEY_PASS=ppjjpp
ports:
- 8085:8085
networks:
- bykstack
extra_hosts:
- "host.docker.internal:host-gateway"
cpus: "0.5"
mem_limit: "512M"
tim-postgresql:
container_name: tim-postgresql
image: postgres:14.1
environment:
- POSTGRES_USER=tim
- POSTGRES_PASSWORD=123
- POSTGRES_DB=tim
# - POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./tim-db:/var/lib/postgresql/data
ports:
- 9876:5432
networks:
- bykstack
authentication-layer:
container_name: authentication-layer
image: authentication-layer
ports:
- 3004:3004
networks:
- bykstack
resql:
container_name: resql
image: resql
depends_on:
- users_db
environment:
- sqlms.datasources.[0].name=byk
- sqlms.datasources.[0].jdbcUrl=jdbc:postgresql://users_db:5432/global-classifier #For LocalDb Use
# sqlms.datasources.[0].jdbcUrl=jdbc:postgresql://171.22.247.13:5435/byk?sslmode=require
- sqlms.datasources.[0].username=postgres
- sqlms.datasources.[0].password=dbadmin
- logging.level.org.springframework.boot=INFO
ports:
- 8082:8082
volumes:
- ./DSL/Resql:/DSL
- ./shared:/shared
- ./DSL/DatasetGenerator/output_datasets:/app/output_datasets
networks:
- bykstack
users_db:
container_name: users_db
image: postgres:14.1
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=dbadmin
- POSTGRES_DB=global-classifier
ports:
- 5435:5432
volumes:
- ./global-classifier-db/db_files:/var/lib/postgresql/data
- ./shared:/shared
- ./DSL/DatasetGenerator/output_datasets:/app/output_datasets
networks:
- bykstack
restart: always
init:
image: busybox
command: ["sh", "-c", "chmod -R 777 /shared && chmod -R 777 /app/model_trainer && chmod -R 777 /app/data"]
volumes:
- shared-volume:/shared
- ./model_trainer:/app/model_trainer
- cron_data:/app/data
networks:
- bykstack
cron-manager:
container_name: cron-manager
image: cron-manager-python:latest
volumes:
- ./DSL/CronManager/DSL:/DSL
- ./DSL/CronManager/script:/app/scripts
- ./DSL/DatasetGenerator/output_datasets:/app/output_datasets
- ./src/s3_dataset_processor:/app/src/s3_dataset_processor
- ./DSL/DatasetGenerator/config:/app/config
- ./src/model-training:/app/src/training
- ./mlflow/mlflow_artifacts:/mlflow/mlflow_artifacts
- ./data/processed:/app/data/processed
- shared-volume:/app/shared
- cron_data:/app/data
- ./models:/app/models
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- server.port=9010
- MLFLOW_TRACKING_URI=http://mlflow:5000
- PYTHONPATH=/app:/app/src/model_training:/app/src/s3_dataset_processor:/app/src
ports:
- 9010:8080
networks:
- bykstack
depends_on:
- init
- gc-s3-ferry
- mlflow
# classifier-service:
# container_name: classifier-service
# build:
# context: ./src/classifier-service
# ports:
# - "8090:8090"
# networks:
# - bykstack
# volumes:
# - ./src/classifier-service:/app
# environment:
# - NODE_ENV=development
# restart: always
mlflow:
build:
context: ./mlflow
dockerfile: Dockerfile
container_name: mlflow
ports:
- "5001:5000"
env_file:
- sidecar.env
environment:
- MLFLOW_TRACKING_USERNAME=${MLFLOW_TRACKING_USERNAME}
- MLFLOW_TRACKING_PASSWORD=${MLFLOW_TRACKING_PASSWORD}
- MLFLOW_HOST=${MLFLOW_HOST}
- MLFLOW_PORT=${MLFLOW_PORT}
- MLFLOW_BACKEND_STORE_URI=${MLFLOW_BACKEND_STORE_URI}
- MLFLOW_DEFAULT_ARTIFACT_ROOT=${MLFLOW_DEFAULT_ARTIFACT_ROOT}
- MLFLOW_FLASK_SERVER_SECRET_KEY=${MLFLOW_FLASK_SERVER_SECRET_KEY}
volumes:
- ./mlflow/mlflow_data:/mlflow/mlflow_data
- ./mlflow/mlflow_artifacts:/mlflow/mlflow_artifacts
networks:
- bykstack
minio:
image: minio/minio:latest
container_name: minio
env_file:
- sidecar.env
environment:
- MINIO_ROOT_USER=${MINIO_ROOT_USER}
- MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}
- MINIO_BROWSER_REDIRECT_URL=${MINIO_BROWSER_REDIRECT_URL}
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
ports:
- "9000:9000" # API port
- "9001:9001" # Console port
networks:
- bykstack
gc-s3-ferry:
image: s3-ferry:latest
container_name: gc-s3-ferry
volumes:
- ./DSL/DatasetGenerator/output_datasets:/app/output_datasets
- shared-volume:/app/shared
- ./models:/app/models
env_file:
- config.env
ports:
- "3006:3000"
user: "root"
networks:
- bykstack
# dataset-file-handler:
# container_name: dataset-file-handler
# build: ./src/dataset_file_handler
# ports:
# - "8001:8001"
# volumes:
# - cron_data:/app/data # Same volume as cron-manager
# environment:
# - PORT=8001
# networks:
# - bykstack
# healthcheck:
# test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
# interval: 30s
# timeout: 10s
# retries: 3
opensearch-node:
image: opensearchproject/opensearch:2.11.1
container_name: opensearch-node
environment:
- node.name=opensearch-node
- discovery.seed_hosts=opensearch
- discovery.type=single-node
- bootstrap.memory_lock=true
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- plugins.security.disabled=true
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600
networks:
- bykstack
notifications-node:
container_name: notifications-node
build:
context: ./notification-server
dockerfile: Dockerfile
ports:
- 4040:4040
depends_on:
- opensearch-node
environment:
OPENSEARCH_PROTOCOL: http
OPENSEARCH_HOST: opensearch-node
OPENSEARCH_PORT: 9200
OPENSEARCH_USERNAME: admin
OPENSEARCH_PASSWORD: admin
PORT: 4040
REFRESH_INTERVAL: 1000
CORS_WHITELIST_ORIGINS: http://localhost:3001,http://localhost:3002,http://localhost:3003,http://localhost:3004,http://localhost:8080,http://localhost:8088
RUUTER_URL: http://ruuter-public:8086
volumes:
- /app/node_modules
- ./notification-server:/app
networks:
- bykstack
# Uncomment below container if you wish to debug progress bar sessions in opensearch dashboard
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.11.1
container_name: opensearch-dashboards
environment:
- OPENSEARCH_HOSTS=http://opensearch-node:9200
- DISABLE_SECURITY_DASHBOARDS_PLUGIN=true
ports:
- 5601:5601
networks:
- bykstack
gui:
container_name: gui
environment:
- NODE_ENV=local
- REACT_APP_RUUTER_API_URL=http://localhost:8086
- REACT_APP_RUUTER_PRIVATE_API_URL=http://localhost:8088
- REACT_APP_EXTERNAL_API_URL=http://localhost:8000
- REACT_APP_CUSTOMER_SERVICE_LOGIN=http://localhost:3004/et/dev-auth
- REACT_APP_NOTIFICATION_NODE_URL=http://localhost:4040
- REACT_APP_CSP=upgrade-insecure-requests; default-src 'self'; font-src 'self' data:; img-src 'self' data:; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; object-src 'none'; connect-src 'self' http://localhost:8086 http://localhost:8088 http://localhost:8085 http://localhost:4040 http://localhost:3001 http://localhost:8000;
- DEBUG_ENABLED=true
- CHOKIDAR_USEPOLLING=true
- PORT=3001
- REACT_APP_SERVICE_ID=conversations,settings,monitoring
- REACT_APP_ENABLE_HIDDEN_FEATURES=TRUE
build:
context: ./GUI
dockerfile: Dockerfile.dev
ports:
- 3003:3001
volumes:
- /app/node_modules
- ./GUI:/app
networks:
- bykstack
cpus: "0.5"
mem_limit: "1G"
volumes:
shared-volume:
opensearch-data:
dataset_gen_ollama_models:
minio_data:
cron_data:
networks:
bykstack:
name: bykstack
driver: bridge