Skip to content

Commit

Permalink
readme添加docker运行受命
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf committed Dec 9, 2022
1 parent c761ab4 commit 04b51e7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
`第一种:基于环境变量运行`

```sh
docker run -itd --name wechatbot -e ApiKey=xxxx -e AutoPass=false -e SessionTimeout=60 docker.mirrors.sjtug.sjtu.edu.cn/qingshui869413421/wechatbot:latest
# 运行项目
$ docker run -itd --name wechatbot -e ApiKey=xxxx -e AutoPass=false -e SessionTimeout=60 docker.mirrors.sjtug.sjtu.edu.cn/qingshui869413421/wechatbot:latest

# 查看二维码
$ docker logs -f wechatbot
```

其中配置文件参考下边的配置文件说明。
Expand All @@ -41,6 +45,9 @@ cp config.dev.json config.json # 其中 config.dev.json 从项目的根目录

# 运行项目
docker run -itd --name wechatbot -v ./config.json:/app/config.json docker.mirrors.sjtug.sjtu.edu.cn/qingshui869413421/wechatbot:latest

# 查看二维码
$ docker logs -f wechatbot
```

其中配置文件参考下边的配置文件说明。
Expand Down

0 comments on commit 04b51e7

Please sign in to comment.