fix: 修复Docker全栈部署配置

This commit is contained in:
Nixevol
2026-07-05 08:12:20 +08:00
parent f496300829
commit a0ccf3805b
9 changed files with 67 additions and 5 deletions
+2
View File
@@ -119,6 +119,8 @@ pnpm dev:client # 客户端 http://localhost:5174
docker compose --env-file .env -f docker/docker-compose.full.yml up -d --build
```
如果使用 `python scripts/docker_dev.py` 在本机演示全栈,脚本会生成适合 Docker/Nginx 拓扑的 `.env`:后台与短链入口 `http://localhost`,客户端 `http://localhost:8080`,API 由 Nginx 反代。迁移到真实域名时,务必修改 `.env` 中的 `BASE_URL`、`ADMIN_ORIGIN`、`CLIENT_ORIGIN`、`TRACE_URL_TEMPLATE`、`JWT_SECRET` 和数据库/Redis 密码。
## 七、命令速查
| 命令 | 说明 |