diff --git a/DEPLOY.en.md b/DEPLOY.en.md index 2ff3250..127696a 100644 --- a/DEPLOY.en.md +++ b/DEPLOY.en.md @@ -175,6 +175,18 @@ If container logs look normal but the admin panel is unreachable, check these fi 1. **Port alignment**: when `PORT` is not `5001`, use the same port in your URL (for example `http://localhost:8080/admin`). 2. **WebUI assets in dev compose**: `docker-compose.dev.yml` runs `go run` in a dev image and does not auto-install Node.js inside the container; if `static/admin` is missing in your repo, `/admin` will return 404. Build once on host: `./scripts/build-webui.sh`. +### 2.7 Zeabur One-Click (Dockerfile) + +This repo includes a `zeabur.yaml` template for one-click deployment on Zeabur: + +[](https://zeabur.com/templates/L4CFHP) + +Notes: + +- **Port**: DS2API listens on `5001` by default; the template sets `PORT=5001`. +- **Persistent config**: the template mounts `/data` and sets `DS2API_CONFIG_PATH=/data/config.json`. After importing config in Admin UI, it will be written and persisted to this path. +- **First login**: after deployment, open `/admin` and login with `DS2API_ADMIN_KEY` shown in Zeabur env/template instructions (recommended: rotate to a strong secret after first login). + --- ## 3. Vercel Deployment diff --git a/DEPLOY.md b/DEPLOY.md index d7d74d3..2df4238 100644 --- a/DEPLOY.md +++ b/DEPLOY.md @@ -175,6 +175,18 @@ healthcheck: 1. **端口是否一致**:`PORT` 改成非 `5001` 时,访问地址也要改成对应端口(如 `http://localhost:8080/admin`)。 2. **开发 compose 的 WebUI 静态文件**:`docker-compose.dev.yml` 使用 `go run` 开发镜像,不会在容器内自动安装 Node.js;若仓库里没有 `static/admin`,`/admin` 会返回 404。可先在宿主机构建一次:`./scripts/build-webui.sh`。 +### 2.7 Zeabur 一键部署(Dockerfile) + +仓库提供 `zeabur.yaml` 模板,可在 Zeabur 上一键部署: + +[](https://zeabur.com/templates/L4CFHP) + +部署要点: + +- **端口**:服务默认监听 `5001`,模板会固定设置 `PORT=5001`。 +- **配置持久化**:模板挂载卷 `/data`,并设置 `DS2API_CONFIG_PATH=/data/config.json`;在管理台导入配置后,会写入并持久化到该路径。 +- **首次登录**:部署完成后访问 `/admin`,使用 Zeabur 环境变量/模板指引中的 `DS2API_ADMIN_KEY` 登录(建议首次登录后自行更换为强密码)。 + --- ## 三、Vercel 部署 diff --git a/README.MD b/README.MD index b8c3be0..9b77d09 100644 --- a/README.MD +++ b/README.MD @@ -1,3 +1,7 @@ +
+
+
+
+