-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
83 lines (80 loc) · 2.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
83 lines (80 loc) · 2.28 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
services:
control-plane:
image: agentfield/control-plane:latest
environment:
AGENTFIELD_STORAGE_MODE: local
AGENTFIELD_HTTP_ADDR: 0.0.0.0:8080
ports:
- "${AGENTFIELD_HTTP_PORT:-8080}:8080"
volumes:
- agentfield-data:/data
# NOTE: agentfield/control-plane:latest is a distroless image — no sh, no wget, no curl.
# A CMD-based healthcheck cannot run inside the container. The agent SDK retries
# connection to the control plane on startup, so service_started is sufficient.
ragpack-af:
build:
context: .
dockerfile: Dockerfile
environment:
AGENTFIELD_SERVER: http://control-plane:8080
AGENT_CALLBACK_URL: http://ragpack-af:8001
AGENT_NODE_ID: ${AGENT_NODE_ID:-ragpack-af}
OPENROUTER_API_KEY: ${OPENROUTER_API_KEY:-}
OPENAI_API_KEY: ${OPENAI_API_KEY:-}
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
GOOGLE_API_KEY: ${GOOGLE_API_KEY:-}
AI_MODEL: ${AI_MODEL:-openrouter/deepseek/deepseek-v4-flash}
OCR_BACKEND: ${OCR_BACKEND:-text}
OCR_SGLANG_URL: http://ocr-sglang:10000/v1/chat/completions
OCR_MODEL_NAME: ${OCR_MODEL_NAME:-Unlimited-OCR}
OCR_IMAGE_MODE: ${OCR_IMAGE_MODE:-gundam}
PORT: ${PORT:-8001}
ports:
- "${AGENT_NODE_PORT:-8001}:8001"
depends_on:
control-plane:
condition: service_started
restart: on-failure
ocr-sglang:
profiles: ["gpu-ocr"]
image: lmsysorg/sglang:latest
command:
- python3
- -m
- sglang.launch_server
- --model-path
- baidu/Unlimited-OCR
- --served-model-name
- Unlimited-OCR
- --attention-backend
- fa3
- --page-size
- "1"
- --mem-fraction-static
- "0.8"
- --context-length
- "32768"
- --enable-custom-logit-processor
- --disable-overlap-schedule
- --skip-server-warmup
- --host
- 0.0.0.0
- --port
- "10000"
environment:
HF_TOKEN: ${HF_TOKEN:-}
ports:
- "${OCR_SGLANG_PORT:-10000}:10000"
volumes:
- hf-cache:/root/.cache/huggingface
shm_size: "32gb"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
agentfield-data:
hf-cache: