Skip to content

Commit 2079261

Browse files
Add Docker Update Readme
1 parent aa27f77 commit 2079261

2 files changed

Lines changed: 71 additions & 3 deletions

File tree

  • docs/user-guide/backend
  • i18n/en/docusaurus-plugin-content-docs/current/user-guide/backend

docs/user-guide/backend/docker.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ git clone https://github.com/Open-LLM-VTuber/OLV-Docker-Config
1818
```
1919

2020
### zip下载(适合没有代码基础的用户)
21-
:::warning 这样下载的话没法更新,但是当下肯定是可以用的。
21+
:::warning
22+
这样下载的话,配置文件`conf.yaml`只能[手动更新](#手动更新)
2223
:::
2324
首先,[点击这里前往用户配置代码仓库](https://github.com/Open-LLM-VTuber/OLV-Docker-Config)
2425

@@ -216,3 +217,35 @@ docker logs -f open-llm-vtuber-latest
216217

217218
至此,你就成功部署了 Open LLM VTuber!
218219

220+
## 更新
221+
### 更新配置文件
222+
有 git 更新和手动更新两种方式。
223+
#### git 更新
224+
`OLV-Docker-Config` 目录下运行以下命令:
225+
```bash
226+
git stash
227+
git pull
228+
git stash pop
229+
```
230+
如有冲突请手动处理。
231+
232+
#### 手动更新
233+
手动对比新版 `conf.yaml` 与旧版 `conf.yaml`的不同,将需要更新的部分复制到旧的 `conf.yaml` 中。
234+
235+
ChatGPT推荐这个网站 [DiffCheck.ai — YAML Diff Checker](https://diffcheck.ai/yaml),你也可以自己找合适的网站。
236+
237+
### 拉取最新镜像
238+
如果用 `Docker Desktop`, 点击 `Image` 旁边的 `Pull` 即可。
239+
240+
如果用终端,运行以下命令:
241+
```bash
242+
docker pull openllmvtuber/open-llm-vtuber:latest
243+
```
244+
245+
### 重启容器
246+
如果用 `Docker Desktop`, 点击 `Containers``Restart` 即可。
247+
248+
如果用终端,运行以下命令:
249+
```bash
250+
docker-compose up -d
251+
```

i18n/en/docusaurus-plugin-content-docs/current/user-guide/backend/docker.md

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ git clone https://github.com/Open-LLM-VTuber/OLV-Docker-Config
1818

1919
### Download ZIP (for users without coding experience)
2020
:::warning
21-
This download method cannot be updated later, but it will work right now.
21+
If you download it this way, the configuration file `conf.yaml` can only be [updated manually](#manual-update).
2222
:::
2323
First, [click here to go to the user configuration repository](https://github.com/Open-LLM-Vtuber/OLV-Docker-Config)
2424

@@ -216,4 +216,39 @@ docker logs -f open-llm-vtuber-latest
216216

217217
After the logs show `Uvicorn running on http://0.0.0.0:12393`, open `http://localhost:12393` in your browser to access the web interface.
218218

219-
That's it — you have successfully deployed Open LLM VTuber!
219+
That's it — you have successfully deployed Open LLM VTuber!
220+
221+
## Update
222+
223+
### Update configuration file
224+
There are two ways to update: via git or manually.
225+
226+
#### Git update
227+
Run the following commands in the `OLV-Docker-Config` directory:
228+
```bash
229+
git stash
230+
git pull
231+
git stash pop
232+
```
233+
If there are conflicts, please resolve them manually.
234+
235+
#### Manual update
236+
Manually compare the new `conf.yaml` with the old `conf.yaml` and copy the parts that need updating into the old `conf.yaml`.
237+
238+
ChatGPT recommends this website: [DiffCheck.ai — YAML Diff Checker](https://diffcheck.ai/yaml), but you can also use any other suitable site.
239+
240+
### Pull the latest image
241+
If you're using Docker Desktop, click the `Pull` button next to `Image`.
242+
243+
If you're using the terminal, run:
244+
```bash
245+
docker pull openllmvtuber/open-llm-vtuber:latest
246+
```
247+
248+
### Restart the container
249+
If you're using Docker Desktop, click `Restart` under `Containers`.
250+
251+
If you're using the terminal, run:
252+
```bash
253+
docker-compose up -d
254+
```

0 commit comments

Comments
 (0)