fix: trim gen2D slide content to prevent overflow beyond header/footer
Deploy Slides / build-and-deploy (push) Successful in 1m16s

- Reduce Item count per slide: pipeline 4→3, solution 4→2, highlights 6→4
- Remove tech-stack architecture layering Item (moved to tech-stack grid)
- Simplify eino-graph: shorter Go code, 3 Items→2
- Simplify prompt-agent: smaller mermaid, shorter Item text
- Simplify async-task: merge 3 Items→2, remove footer
- Simplify data-model: merge 4 grid items→2
- Simplify architecture: reduce ASCII diagram from 38 to 20 lines
- Simplify dedup-ws: remove JSON code block, shorter Items
- Simplify deployment: smaller mermaid, shorter Items
- Simplify problem: shorter Item text, remove bullet lists
- Simplify style-system: fix typo, shorter Item text
This commit is contained in:
2026-05-30 14:43:23 +08:00
parent d479504f12
commit 19075592e5
13 changed files with 116 additions and 300 deletions
+7 -25
View File
@@ -2,39 +2,21 @@
Docker Compose 双容器 + 一键部署
```mermaid {scale: 0.8}
```mermaid {scale: 0.7}
graph TB
subgraph Docker Compose
A[nginx 容器<br/>前端静态文件 + 反向代理]
B[app 容器<br/>Go 后端 + SQLite]
A[nginx 容器] -->|proxy_pass| B[app 容器]
end
A -->|proxy_pass| B
B --> C[七牛云 Kodo<br/>素材文件存储]
B --> D[DeepSeek LLM<br/>提示词优化]
B --> E[Stability AI<br/>文生图 API]
B --> C[七牛云 Kodo]
B --> D[DeepSeek LLM]
B --> E[Stability AI]
User -->|HTTP| A
```
<Item title="🐳 容器化方案">
- **nginx 容器**:Vite 构建产物 + 反向代理 `/api` 到后端
- **app 容器**:Go 二进制 + SQLite 数据库文件挂载
- **网络**:Docker 内部网络通信,nginx 暴露 8080 端口
nginx 容器:Vite 构建产物 + 反向代理 `/api`。app 容器:Go 二进制 + SQLite 挂载。内部网络通信,nginx 暴露 8080 端口。
</Item>
<Item title="🚀 一键部署">
```bash
# 构建并启动
docker compose up -d --build
# 或使用部署脚本
./deploy.sh
```
- Gitee CI/CD 自动触发:push → 构建 → 部署
- SQLite 嵌入式数据库,无需额外数据库服务
- 配置通过环境变量 / `.env` 文件注入
`docker compose up -d --build` 或 `./deploy.sh`。Gitee CI/CD 自动触发,SQLite 嵌入式零外部依赖。
</Item>