📝 完善Docker部署说明 (#12)

* 新增Docker部署脚本

* 🚨 `pre-commit-ci`修复格式错误

* 修复Docker部署说明

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
唐海英 2023-05-11 16:10:17 +08:00 committed by GitHub
parent 2ca3b906df
commit a68df12faa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 5 deletions

View File

@ -59,14 +59,21 @@ poetry run python core.py
git clone https://ghproxy.com/https://github.com/Genshin-bots/gsuid-core.git --depth=1 --single-branch
```
2. 安装所需插件
```shell
# 安装v4 GenshinUID
cd plugins
git clone -b v4 https://ghproxy.com/https://github.com/KimigaiiWuyi/GenshinUID.git --depth=1 --single-branch
```
2. Docker Compose启动
```shell
cd gsuid-core
# 进入项目根目录
docker-compose up -d
```
- Docker Compose启动前最好先安装需要的插件如[GenshinUID](https://github.com/KimigaiiWuyi/GenshinUID),这样容器在部署时可以一起安装依赖,节省时间
- 默认core将运行在`localhost:8765`端口上Docker部署必须修改`config.json`,如`0.0.0.0:8765`
- 如果Bot例如NoneBot2、HoshinoBot也是Docker部署的Core或其插件更新后可能需要将Core和Bot的容器都重启才生效

View File

@ -5,9 +5,6 @@ services:
restart: always
environment:
- TZ=Asia/Shanghai
dns:
- 114.114.114.114
- 114.114.115.115
ports:
- 8765:8765
volumes: