From f0e02ad0855e4995453528c0845e9740656ca054 Mon Sep 17 00:00:00 2001 From: LiShenshun Date: Thu, 11 May 2023 15:54:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DDocker=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 11 +++++++++-- docker-compose.yml | 3 --- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c133ad3..9da8580 100644 --- a/README.md +++ b/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的容器都重启才生效 diff --git a/docker-compose.yml b/docker-compose.yml index 0016fff..6ae8fe8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,9 +5,6 @@ services: restart: always environment: - TZ=Asia/Shanghai - dns: - - 114.114.114.114 - - 114.114.115.115 ports: - 8765:8765 volumes: