-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
50 lines (49 loc) · 1.35 KB
/
Copy pathcompose.yaml
File metadata and controls
50 lines (49 loc) · 1.35 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
services:
agent-platform:
build: .
image: langgraph-agent:latest
container_name: langgraph-agent
restart: unless-stopped
ports:
- "8000:8000"
env_file:
- .env
environment:
# Docker 环境下覆盖 localhost → host.docker.internal
- OLLAMA_BASE_URL=http://host.docker.internal:11434
- QDRANT_HOST=host.docker.internal
- LANGFUSE_HOST=http://host.docker.internal:3001
# 路径映射(容器内路径)
- DOCS_DIR=/data/docs
- PROJECT_ROOT=/projects
volumes:
- D:/data/docs:/data/docs:ro
- D:/projects:/projects:ro
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
resources:
limits:
memory: 2G
open-webui:
image: openwebui/open-webui:latest
container_name: open-webui-agent
restart: unless-stopped
ports:
- "3000:8080"
volumes:
- D:/data/open-webui:/app/backend/data
environment:
- OLLAMA_BASE_URL=http://host.docker.internal:11434
- WEBUI_AUTH=false
# 指向同 compose 内的 langgraph-agent(Docker 网络直连)
- OPENAI_API_BASE_URLS=http://agent-platform:8000
- OPENAI_API_KEYS=not-needed
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- agent-platform
deploy:
resources:
limits:
memory: 2G