修复Docker部署说明

This commit is contained in:
LiShenshun 2023-05-11 15:54:35 +08:00
parent b857de67c7
commit f0e02ad085
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: