-
Notifications
You must be signed in to change notification settings - Fork 167
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (52 loc) · 1.41 KB
/
docker-compose.yml
File metadata and controls
61 lines (52 loc) · 1.41 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
version: '3.8'
services:
autoclip:
build:
context: .
dockerfile: Dockerfile
container_name: autoclip-app
ports:
- "8000:8000"
environment:
# API配置
- DASHSCOPE_API_KEY=${DASHSCOPE_API_KEY:-}
- SILICONFLOW_API_KEY=${SILICONFLOW_API_KEY:-}
- API_PROVIDER=${API_PROVIDER:-dashscope}
- MODEL_NAME=${MODEL_NAME:-qwen-plus}
- SILICONFLOW_MODEL=${SILICONFLOW_MODEL:-Qwen/Qwen2.5-72B-Instruct}
# 处理参数
- CHUNK_SIZE=${CHUNK_SIZE:-5000}
- MIN_SCORE_THRESHOLD=${MIN_SCORE_THRESHOLD:-0.7}
- MAX_CLIPS_PER_COLLECTION=${MAX_CLIPS_PER_COLLECTION:-5}
# 服务器配置
- HOST=0.0.0.0
- PORT=8000
- DEBUG=${DEBUG:-false}
volumes:
# 数据持久化
- ./uploads:/app/uploads
- ./output:/app/output
- ./data:/app/data
- ./input:/app/input
# 配置文件挂载
- ./data/settings.json:/app/data/settings.json:ro
restart: unless-stopped
# 资源限制
deploy:
resources:
limits:
memory: 2G
cpus: '1.0'
reservations:
memory: 512M
cpus: '0.5'
# 健康检查
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
default:
name: autoclip-network