-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.05 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
version: '3.8'
services:
openspace-evolution:
build: .
container_name: openspace-evolution
volumes:
# 持久化数据
- ./data:/app/data
- ./workspace:/app/workspace
- ./output:/app/output
- ./logs:/app/logs
environment:
# LLM API Keys (从 .env 文件加载)
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
# 配置选项
- LOG_LEVEL=INFO
- QUALITY_THRESHOLD=0.8
ports:
- "8000:8000" # 如果需要 Web 界面
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import sys; sys.exit(0)"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
deploy:
resources:
limits:
cpus: '2.0'
memory: 4G
reservations:
cpus: '0.5'
memory: 1G
# 可选:添加 Redis 用于缓存(未来扩展)
# redis:
# image: redis:7-alpine
# ports:
# - "6379:6379"
# volumes:
# - redis_data:/data
#
#volumes:
# redis_data: