Skip to content

Commit

Permalink
Merge pull request #61 from jichangfeng/master
Browse files Browse the repository at this point in the history
update: use with docker compose
  • Loading branch information
kx-Huang authored May 31, 2024
2 parents 54f26cf + 6c499c9 commit 10fbc58
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,21 @@ Once you deploy the bot successfully, just follow the `terminal` or `Logs` in Do
2. Click "Log in" to allow desktop login (where our bot stays)
3. Wait a few seconds and start chatting!

---

#### 1.1.5 Use with docker compose

```sh
# Copy the configuration file according to the template
cp config.yaml.example config.yaml
# Edit the configuration file
vim config.yaml
# Start the container
docker-compose up -d
# View the QR code to log in to wechat
docker-compose logs -f
```

🤖 **Enjoy your powerful chatbot!** 🤖

---
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'

services:
openai-on-wechat:
image: openai-on-wechat
build: .
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
- ./config.yaml:/app/config.yaml

0 comments on commit 10fbc58

Please # to comment.