-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 959 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 959 Bytes
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
# DocReview Agent System — Docker Compose
# 用法:
# docker compose build # 构建镜像
# docker compose up -d docreview-server # 启动 HTTP MCP Server
# docker compose run --rm docreview-test # 运行测试
# docker compose down # 停止并清理
services:
# ---- HTTP MCP Server(主服务) ----
docreview-server:
build: .
container_name: docreview-server
ports:
- "8000:8000"
env_file:
- .env
volumes:
- docreview-data:/app/data
- docreview-logs:/app/logs
restart: unless-stopped
# ---- 测试(一次性任务) ----
docreview-test:
build: .
container_name: docreview-test
entrypoint: ["python", "-m", "pytest", "tests/", "-v", "--tb=short"]
env_file:
- .env
environment:
- LOG_LEVEL=WARNING
profiles:
- test
volumes:
docreview-data:
driver: local
docreview-logs:
driver: local