forked from yuudi/yobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 1.28 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: "3"
services:
bot:
build: .
ports:
- "9222:9222"
env_file: .env
restart: on-failure
volumes:
- .:/home/yobot/yobot
networks:
- bot_net
cqhttp:
image: richardchien/cqhttp:latest
env_file: .env
restart: on-failure
environment:
- VNC_PASSWD=${VNC_PWD}
- COOLQ_ACCOUNT=${QQ_ACCOUNT} # 要登录的 QQ 账号,可选但建议填
- COOLQ_URL=${COOLQ_VERSION_URL}
- CQHTTP_USE_HTTP=false
- CQHTTP_USE_WS=false
- CQHTTP_USE_WS_REVERSE=true
- CQHTTP_WS_REVERSE_API_URL=ws://bot:9222/ws/api/
- CQHTTP_WS_REVERSE_EVENT_URL=ws://bot:9222/ws/event/
- CQHTTP_WS_REVERSE_URL=ws://bot:9222
- CQHTTP_WS_REVERSE_RECONNECT_INTERVAL=4000
- CQHTTP_REVERSE_RECONNECT_ON_CODE_1000=true
- CQHTTP_POST_MESSAGE_FORMAT=string
- CQHTTP_SERVE_DATA_FILES=false
- CQHTTP_UPDATE_SOURCE=github
- CQHTTP_UPDATE_CHANNEL=stable
- CQHTTP_CHECK_UPDATE=false
- CQHTTP_PERFORM_UPDATE=false
- CQHTTP_SHOW_LOG_CONSOLE=true
- CQHTTP_LOG_LEVEL=info
volumes:
- ./cqhttp:/home/user/coolq
ports:
- "9000:9000" # VNC端口
# - "5700:5700" # HTTP API 插件开放的端口
networks:
- bot_net
networks:
bot_net:
driver: bridge