Add V2 local dev compose

This commit is contained in:
2026-07-06 17:45:24 +08:00
parent e9f3db9ab2
commit 96742de07b
10 changed files with 177 additions and 2 deletions

View File

@@ -26,6 +26,15 @@
## 本地启动
方式一:使用 V2 统一编排。
```bash
cd ai_knowledge_base_v2
docker compose -f docker-compose.dev.yml up --build
```
方式二:本地 Python 直接启动。
```bash
cd ai_knowledge_base_v2/apps/backend
python -m venv .venv
@@ -39,7 +48,5 @@ uvicorn app.main:app --reload --host 127.0.0.1 --port 8100
## 下一步
- 补 Alembic 初始迁移脚本。
- 补聊天会话和消息接口。
- 补管理员登录接口。
- 接入 Redis 替换内存短信验证码和 Token 黑名单。