forked from openvinotoolkit/training_extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.cpu.yml
407 lines (383 loc) · 8.82 KB
/
docker-compose.cpu.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
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
# Copyright (c) 2020 Intel Corporation
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '2.3'
services:
idlp_filebrowser:
container_name: idlp_filebrowser
image: filebrowser/filebrowser
command: --noauth
volumes:
- idlp_data_v:/srv
- ./web/filebrowser/.filebrowser.json:/.filebrowser.json
networks:
- idlp_network
idlp_nginx:
container_name: idlp_nginx
image: nginx:1.18-alpine
ports:
- 8001:8001
- 8002:8002
- 8003:8003
volumes:
- idlp_nginx_conf_v:/etc/nginx/conf.d
- idlp_nginx_media_v:/media
environment:
- IDLP_HOST=${IDLP_HOST}
networks:
- idlp_network
depends_on:
- idlp_api
- idlp_tensorboard_worker
- idlp_mongo
- idlp_ui
- idlp_filebrowser
idlp_ui:
build:
context: web/ui
args:
IDLP_HOST: ${IDLP_HOST}
container_name: idlp_ui
volumes:
- ./web/ui/ui.nginx.conf:/etc/nginx/conf.d/ui.nginx.conf
networks:
- idlp_network
depends_on:
- idlp_api
idlp_mongo:
image: mongo
container_name: idlp_mongo
# ports:
# - 27017:27017
networks:
- idlp_network
volumes:
- idlp_mongo_db_v:/data/db
idlp_mongo_express:
image: mongo-express
container_name: idlp_mongo_express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_AUTH_DATABASE: 'db'
ME_CONFIG_MONGODB_AUTH_USERNAME: 'admin'
ME_CONFIG_MONGODB_AUTH_PASSWORD: 'admin'
ME_CONFIG_OPTIONS_EDITORTHEME: 'idea'
ME_CONFIG_MONGODB_SERVER: 'idlp_mongo'
networks:
- idlp_network
depends_on:
- idlp_mongo
idlp_rabbitmq:
image: 'rabbitmq:management-alpine'
ports:
# - '5672:5672'
- '15672:15672'
container_name: idlp_rabbitmq
networks:
- idlp_network
idlp_api:
build:
context: web/goserver/src/server
dockerfile: api/Dockerfile
restart: always
volumes:
- idlp_go_server_v:/go/src/server
- idlp_ote_v:/ote
container_name: idlp_api
# ports:
# - 8888:8888
networks:
- idlp_network
depends_on:
- idlp_rabbitmq
- idlp_db
idlp_db:
build:
context: web/goserver/src/server
dockerfile: db/Dockerfile
restart: always
volumes:
- idlp_go_server_v:/go/src/server
container_name: idlp_db
networks:
- idlp_network
depends_on:
- idlp_rabbitmq
- idlp_mongo
idlp_problem:
build:
context: web/goserver/src/server
dockerfile: domains/problem/Dockerfile
restart: always
volumes:
- idlp_go_server_v:/go/src/server
- idlp_problem_v:/problem
- idlp_ote_v:/ote
- idlp_nginx_media_v:/media
container_name: idlp_problem
networks:
- idlp_network
depends_on:
- idlp_rabbitmq
- idlp_db
idlp_model:
build:
context: web/goserver/src/server
dockerfile: domains/model/Dockerfile
restart: always
volumes:
- idlp_go_server_v:/go/src/server
- idlp_problem_v:/problem
- idlp_ote_v:/ote
container_name: idlp_model
networks:
- idlp_network
depends_on:
- idlp_rabbitmq
- idlp_db
idlp_build:
build:
context: web/goserver/src/server
dockerfile: domains/build/Dockerfile
restart: always
volumes:
- idlp_go_server_v:/go/src/server
- idlp_problem_v:/problem
container_name: idlp_build
networks:
- idlp_network
depends_on:
- idlp_rabbitmq
- idlp_db
idlp_cvat_task:
build:
context: web/goserver/src/server
dockerfile: domains/cvat_task/Dockerfile
restart: always
volumes:
- idlp_go_server_v:/go/src/server
- idlp_problem_v:/problem
- idlp_cvat_images_v:/images
container_name: idlp_cvat_task
networks:
- idlp_network
- default
depends_on:
- idlp_rabbitmq
- idlp_db
idlp_asset:
build:
context: web/goserver/src/server
dockerfile: domains/asset/Dockerfile
restart: always
volumes:
- idlp_go_server_v:/go/src/server
- idlp_assets_v:/assets
container_name: idlp_asset
networks:
- idlp_network
depends_on:
- idlp_rabbitmq
- idlp_db
idlp_train_worker:
build:
context: .
dockerfile: web/goserver/src/server/workers/train/Dockerfile.cpu
restart: always
shm_size: '2gb'
volumes:
- idlp_go_server_v:/go/src/server
- idlp_problem_v:/problem
- idlp_cvat_images_v:/images
- idlp_ote_v:/ote
container_name: idlp_train_worker
networks:
- idlp_network
depends_on:
- idlp_rabbitmq
idlp_tensorboard_worker:
container_name: idlp_tensorboard_worker
build:
context: web/pyserver
dockerfile: workers/board/Dockerfile
volumes:
- idlp_py_server_v:/code
- idlp_problem_v:/problem
ports:
- 6006:6006
- 8812:8812
networks:
- idlp_network
cvat_db:
container_name: cvat_db
image: postgres:10-alpine
networks:
idlp_network:
aliases:
- db
restart: always
environment:
POSTGRES_USER: root
POSTGRES_DB: cvat
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- cvat_db_v:/var/lib/postgresql/data
cvat_redis:
container_name: cvat_redis
image: redis:4.0-alpine
networks:
idlp_network:
aliases:
- redis
restart: always
cvat:
container_name: cvat
image: cvat
restart: always
depends_on:
- cvat_redis
- cvat_db
build:
context: external/cvat
args:
http_proxy:
https_proxy:
no_proxy:
socks_proxy:
TF_ANNOTATION: "no"
AUTO_SEGMENTATION: "no"
USER: "django"
DJANGO_CONFIGURATION: "production"
TZ: "Etc/UTC"
OPENVINO_TOOLKIT: "no"
environment:
DJANGO_MODWSGI_EXTRA_ARGS: ""
ALLOWED_HOSTS: '*'
CVAT_REDIS_HOST: "cvat_redis"
CVAT_POSTGRES_HOST: "cvat_db"
volumes:
- cvat_data_v:/home/django/data
- cvat_keys_v:/home/django/keys
- cvat_logs_v:/home/django/logs
- cvat_models_v:/home/django/models
- idlp_assets_v:/home/django/share
networks:
- idlp_network
cvat_ui:
container_name: cvat_ui
restart: always
build:
context: external/cvat
args:
http_proxy:
https_proxy:
no_proxy:
socks_proxy:
dockerfile: Dockerfile.ui
networks:
idlp_network:
aliases:
- ui
depends_on:
- cvat
cvat_proxy:
container_name: cvat_proxy
image: nginx:stable-alpine
restart: always
depends_on:
- cvat
- cvat_ui
environment:
CVAT_HOST: ${IDLP_HOST}
ports:
- "8080:80"
volumes:
- ./external/cvat/cvat_proxy/nginx.conf:/etc/nginx/nginx.conf:ro
- ./external/cvat/cvat_proxy/conf.d/cvat.conf.template:/etc/nginx/conf.d/cvat.conf.template:ro
command: /bin/sh -c "envsubst '$$CVAT_HOST' < /etc/nginx/conf.d/cvat.conf.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"
networks:
- idlp_network
networks:
idlp_network:
name: idlp_network
volumes:
idlp_mongo_db_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/data/db
idlp_go_server_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/goserver/src/server
idlp_ote_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD
idlp_problem_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/data/problem
idlp_cvat_images_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/data/images
idlp_assets_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/data/assets
idlp_py_server_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/pyserver
idlp_nginx_conf_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/nginx/conf.d
idlp_nginx_media_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/nginx/media
cvat_db_v:
cvat_data_v:
cvat_keys_v:
cvat_logs_v:
cvat_models_v:
idlp_data_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/data
idlp_filebrowser_db_v:
driver: local
driver_opts:
o: bind
type: none
device: $PWD/web/filebrowser/filebrowser.db