forked from OpenDemon/Pilipili-AutoVideo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (65 loc) · 2.22 KB
/
docker-compose.yml
File metadata and controls
70 lines (65 loc) · 2.22 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
version: "3.9"
# ============================================================
# 噼哩噼哩 Pilipili-AutoVideo - Docker Compose 部署配置
#
# 快速启动:
# cp configs/config.example.yaml configs/config.yaml
# # 编辑 configs/config.yaml 填入 API Keys
# docker-compose up -d
#
# 访问地址:
# Web UI: http://localhost:3000
# API: http://localhost:8000
# API 文档: http://localhost:8000/docs
# ============================================================
services:
# ── 后端 API 服务 ─────────────────────────────────────────
backend:
build:
context: .
dockerfile: Dockerfile.backend
container_name: pilipili-backend
restart: unless-stopped
ports:
- "8000:8000"
volumes:
# 挂载配置文件(包含 API Keys)
- ./configs:/app/configs:ro
# 挂载数据目录(持久化输出、记忆数据库)
- pilipili-data:/app/data
environment:
# 可通过环境变量覆盖配置文件中的 API Keys
- DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:-}
- KIMI_API_KEY=${KIMI_API_KEY:-}
- MINIMAX_API_KEY=${MINIMAX_API_KEY:-}
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
- KLING_API_KEY=${KLING_API_KEY:-}
- KLING_API_SECRET=${KLING_API_SECRET:-}
- VOLCENGINE_API_KEY=${VOLCENGINE_API_KEY:-}
- MEM0_API_KEY=${MEM0_API_KEY:-}
- LLM_PROVIDER=${LLM_PROVIDER:-deepseek}
- VIDEO_PROVIDER=${VIDEO_PROVIDER:-kling}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
# ── 前端 Web UI ───────────────────────────────────────────
frontend:
build:
context: ./frontend
dockerfile: Dockerfile.frontend
container_name: pilipili-frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_URL=http://localhost:8000
- NEXT_PUBLIC_WS_URL=ws://localhost:8000
depends_on:
backend:
condition: service_healthy
volumes:
pilipili-data:
driver: local