-
Notifications
You must be signed in to change notification settings - Fork 11.4k
Expand file tree
/
Copy pathcompose.yaml
More file actions
53 lines (52 loc) · 1.4 KB
/
Copy pathcompose.yaml
File metadata and controls
53 lines (52 loc) · 1.4 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
services:
paddleocr-vl-api:
image: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleocr-vl:${API_IMAGE_TAG_SUFFIX}
container_name: paddleocr-vl-api
ports:
- 8080:8080
depends_on:
paddleocr-vlm-server:
condition: service_healthy
user: root
privileged: true
devices:
- /dev/kfd
- /dev/dri
- /dev/mkfd
group_add:
- video
cap_add:
- SYS_PTRACE
security_opt:
- seccomp=unconfined
restart: unless-stopped
environment:
- VLM_BACKEND=${VLM_BACKEND:-vllm}
command: paddlex --serve --pipeline /home/paddleocr/pipeline_config_${VLM_BACKEND}.yaml --device dcu
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
volumes:
- /opt/hyhal/:/opt/hyhal/:ro
shm_size: 64g
paddleocr-vlm-server:
image: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddleocr-genai-${VLM_BACKEND}-server:${VLM_IMAGE_TAG_SUFFIX}
container_name: paddleocr-vlm-server
user: root
privileged: true
devices:
- /dev/kfd
- /dev/dri
- /dev/mkfd
group_add:
- video
cap_add:
- SYS_PTRACE
security_opt:
- seccomp=unconfined
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8080/health || exit 1"]
start_period: 300s
volumes:
- /opt/hyhal/:/opt/hyhal/:ro
shm_size: 64g