Merge branch 'main' of http://192.168.68.19:3200/jinghui/unicut
This commit is contained in:
commit
c84c9c8bcc
1 file changed
+35
-2
@@ -211,12 +211,45 @@ docker run -d --name unicut -p 3006:80 -p 3005:443 \
|
||||
|
||||
打开 `http://服务器IP:3006` 即用。Registry 地址 `gitea.88531.cn` 免登录可拉;镜像与源码构建产物完全一致,每次发版同步更新 `latest` 与 `v1.0.0` 两个 tag。
|
||||
|
||||
### 方式二:源码 compose 构建
|
||||
### 方式二:Docker Compose部署(源码 compose 构建)
|
||||
|
||||
完整 `docker-compose.yml`(含全部参数,与仓库根目录文件一致):
|
||||
|
||||
```yaml
|
||||
services:
|
||||
unicut:
|
||||
build: .
|
||||
container_name: unicut
|
||||
restart: always
|
||||
ports:
|
||||
- "3005:443"
|
||||
- "3006:80"
|
||||
environment:
|
||||
# 公网部署:不注入任何模型密钥,AI 功能一律用户自带 Key
|
||||
# 授权中心(auth.88531.cn)项目密钥:只注入 nginx 反代头,不进前端
|
||||
- HUB_KEY=${HUB_KEY:-}
|
||||
# 项目编号(非机密):启动时由 entrypoint 替换进前端包,用于公告/装机统计归属
|
||||
- HUB_PROJECT_ID=${HUB_PROJECT_ID:-}
|
||||
volumes:
|
||||
- certs:/etc/nginx/certs
|
||||
|
||||
# 本机语音合成(edge-tts),给免登录版提供配音能力;源码在 ../unicut-tts
|
||||
unicut-tts:
|
||||
build: ../unicut-tts
|
||||
container_name: unicut-tts
|
||||
restart: always
|
||||
volumes:
|
||||
- ../unicut-tts/audio:/data/audio
|
||||
|
||||
volumes:
|
||||
certs:
|
||||
```
|
||||
|
||||
```bash
|
||||
git clone https://gitee.com/jinghui111/unicut.git
|
||||
cd unicut
|
||||
docker compose up -d unicut
|
||||
docker compose up -d unicut # 只启动编辑器
|
||||
docker compose up -d # 全量(需 ../unicut-tts 源码)
|
||||
```
|
||||
|
||||
首次构建包含前端打包,约需几分钟。完成后浏览器访问:
|
||||
|
||||
Reference in new issue
Block a user