Skip to content

Commit

Permalink
fix: 修正Docker Compose错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Cassius0924 committed Mar 6, 2024
1 parent 5a90eb5 commit fc4fb4a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ venv/
.pre-commit-config.yaml
config.yaml.example
config.yaml
compose_config.yaml.example
config_cps.yaml.example
/.github
/tests
.DS_Store
Expand Down
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ WeChatter 支持 [Docker Compose 部署](#docker-compose-部署)、[Docker 部

```bash
mkdir WeChatter && cd WeChatter
wget -O compose_config.yaml https://cdn.jsdelivr.net/gh/cassius0924/wechatter@master/compose_config.yaml.example
wget -O compose_config.yaml https://cdn.jsdelivr.net/gh/cassius0924/wechatter@master/config_cps.yaml.example
```

2. 编辑 `compose_config.yaml` 配置文件
2. 编辑 `config_cps.yaml` 配置文件

```bash
vim compose_config.yaml
vim config_cps.yaml
```

3. 下载 docker-compose.yml
Expand All @@ -47,9 +47,17 @@ wget https://cdn.jsdelivr.net/gh/cassius0924/wechatter@master/docker-compose.yml
4. 运行 Docker Compose

```bash
docker-compose -f docker-compose.yml up -d
docker-compose -f docker-compose.yml up
```

5. 登录微信

使用微信扫描终端输出的二维码登录微信。

6. 测试机器人

使用另一个微信给机器人发送 `/help` 指令。

## 支持的命令

- [x] GPT 问答(不支持定时任务)
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ services:
- RECVD_MSG_API=http://wechatter:4000/receive_msg

wechatter:
image: cassius0924/wechatter:v0.5.10
image: cassius0924/wechatter
container_name: wechatter
ports:
- "4000:4000"
volumes:
- ./compose_config.yaml.example:/wechatter/config.yaml
- ./config_cps.yaml:/wechatter/config.yaml
environment:
- WECHATTER_LOG_LEVEL=INFO
depends_on:
Expand Down

0 comments on commit fc4fb4a

Please sign in to comment.