Add Ubuntu Docker manage.sh menu for start/stop/port.

Provide an interactive script and .env.example so operators can change APP_PORT and run common compose actions without memorizing commands.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
梁铭洋
2026-08-29 15:17:26 +08:00
co-authored by Cursor
parent dcde552657
commit e90756f7a3
3 changed files with 238 additions and 0 deletions
+12
View File
@@ -32,6 +32,18 @@
## 3. Docker 一键部署
### 方式 1:管理脚本(推荐,Ubuntu)
```bash
chmod +x manage.sh
./manage.sh
```
菜单可完成:启动 / 停止 / 重启 / 看状态 / 看日志 / **改端口** / 拉代码更新 / 查看常用命令说明。
端口保存在项目根目录 `.env``APP_PORT`(默认 `8080`)。
### 方式 2:直接敲命令
在项目根目录执行:
```bash