-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
81 lines (76 loc) · 2.46 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
81 lines (76 loc) · 2.46 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
version: "3.8"
services:
minio:
image: minio/minio
container_name: oa_minio
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
NO_PROXY: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
no_proxy: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
command: server /data --console-address ":9001"
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
restart: unless-stopped
application-service:
build: ./application-service
container_name: oa_application
devices:
- /dev/dri:/dev/dri
group_add:
- video
volumes:
- ./storage/videos:/videos
- ./storage/uploads:/uploads
- ./model:/model
- ./config:/config:ro
environment:
APP_CONFIG: /config/application.yaml
VLM_MODEL_PATH: /model/Qwen2.5-VL-7B-Instruct-ov-int8
OPENVINO_DEVICE: GPU
OMP_NUM_THREADS: 4
MKL_NUM_THREADS: 4
OPENBLAS_NUM_THREADS: 4
NO_PROXY: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
no_proxy: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
ports:
- "8000:8000"
depends_on:
- minio
extra_hosts:
- "host.docker.internal:host-gateway"
cpus: 4
shm_size: 2g
frame-selector:
build: ./frame-selector-service
container_name: oa_frame_selector
volumes:
- ./config:/config:ro
- ./model:/app/models
- ./datasets:/app/datasets
environment:
APP_CONFIG: /config/application.yaml
NO_PROXY: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
no_proxy: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
depends_on:
- application-service
extra_hosts: # ← ADD THIS
- "host.docker.internal:host-gateway" # ← ADD THIS
gradio-ui:
build: ./gradio-ui
container_name: oa_gradio
ports:
- "7860:7860"
depends_on:
- application-service
environment:
NO_PROXY: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
no_proxy: "localhost,127.0.0.1,application-service,minio,host.docker.internal"
extra_hosts: # ← ADD THIS
- "host.docker.internal:host-gateway" # ← ADD THIS
restart: unless-stopped # ← ADD THIS (optional)
volumes:
minio_data: