创建docker-compose.yaml
文件并拷贝下面内容
version: "3"
services:
go-cqhttp:
image: mzzsfy/go-cqhttp:latest
container_name: go-cqhttp
volumes:
- ./data:/data
restart: always
environment:
# - token=$Yourtoken #替换为自己生成的token
- ws_url='ws://sillygirl:8080/qq/receive'
- TZ=Asia/Shanghai
networks:
- sillygirl
depends_on:
- sillygirl
sillygirl:
image: mzzsfy/sillygirl:latest
container_name: sillygirl
volumes:
- ./sillyGirl:/etc/sillyGirl
restart: always
environment:
# - set__qq__token=$Yourtoken #替换为自己生成的token
- TZ=Asia/Shanghai
networks:
- sillygirl
networks:
sillygirl:
docker-compsoe up -d
启动
docker-compose logs -f
查看日志
可以在本地服务器(与手机qq扫码在同一局域网内)启动服务,生成session.token 复制到云服务器相同目录下
首先运行一下,会生成device.json
找到protocol
字段修改为2
你可能会用到的一些资料
https://hub.docker.com/r/mzzsfy/sillygirl