docs(deploy): document generated file retention

This commit is contained in:
Xiaoxia AI
2026-06-21 11:29:33 +08:00
parent ccb7e1e57a
commit bc92400eff
7 changed files with 100 additions and 14 deletions
+6 -7
View File
@@ -99,10 +99,9 @@ uvicorn apps.api.main:app --reload
\q
```
3. **运行迁移**
3. **运行 Alembic 迁移**
```bash
psql postgresql://xiaoxia_user:password@localhost:5432/xiaoxia_saas \
-f migrations/001_initial_schema.sql
alembic upgrade head
```
4. **配置环境变量**
@@ -120,17 +119,17 @@ uvicorn apps.api.main:app --reload
## 🐳 Docker 环境
### docker-compose(自动配置 PostgreSQL)
### Canonical Docker Compose(自动配置 PostgreSQL)
```bash
# 自动启动 PostgreSQL 和应用
docker-compose up -d
WEB_PORT=3001 docker compose -f infra/docker/compose.yml up -d --build
# 查看日志
docker-compose logs -f api
docker compose -f infra/docker/compose.yml logs -f api
```
`docker-compose.yml` 默认使用 PostgreSQL。
`infra/docker/compose.yml` 是当前唯一有效 compose 入口;根目录 `docker-compose.yml` 已退役。
---