mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-08 04:56:00 +08:00
📝 完善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:
parent
2ca3b906df
commit
a68df12faa
11
README.md
11
README.md
@ -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的容器都重启才生效
|
||||
|
||||
|
@ -5,9 +5,6 @@ services:
|
||||
restart: always
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
dns:
|
||||
- 114.114.114.114
|
||||
- 114.114.115.115
|
||||
ports:
|
||||
- 8765:8765
|
||||
volumes:
|
||||
|
Loading…
x
Reference in New Issue
Block a user