feat: q2tg 没改好版本

This commit is contained in:
手瓜一十雪 2025-03-07 15:22:34 +08:00
parent 194d0071e6
commit 1b32e6f319
2 changed files with 69 additions and 0 deletions

43
compose/q2tg.yml Normal file
View File

@ -0,0 +1,43 @@
# Q2TG & NapCat Docker Compose 配置文件
# 启动命令: NAPCAT_UID=$(id -u) NAPCAT_GID=$(id -g) docker-compose -f ./compose/q2tg.yml up -d
services:
postgres:
image: postgres:14-alpine
restart: unless-stopped
environment:
POSTGRES_DB: db_name
POSTGRES_USER: user
POSTGRES_PASSWORD: password
volumes:
- postgresql:/var/lib/postgresql/data
napcat:
container_name: napcat
image: mlikiowa/napcat-docker:latest
restart: always
environment:
- NAPCAT_UID=${NAPCAT_UID:-1000}
- NAPCAT_GID=${NAPCAT_GID:-1000}
- MODE=q2tg
ports:
- 6099:6099
- 3001:3001
volumes:
- ./napcat:/app/napcat
- ./ntqq:/app/.config/QQ
networks:
- q2tg_network
mac_address: "02:42:ac:11:00:02"
q2tg:
container_name: q2tg
image: clansty/q2tg:rainbowcat
restart: unless-stopped
volumes:
- ./napcat:/app/napcat
- ./ntqq:/app/.config/QQ
networks:
- q2tg_network
networks:
q2tg_network:
driver: bridge

View File

@ -0,0 +1,26 @@
{
"network": {
"httpServers": [],
"httpSseServers": [],
"httpClients": [],
"websocketServers": [
{
"enable": true,
"name": "ws",
"host": "0.0.0.0",
"port": 3001,
"reportSelfMessage": false,
"enableForcePushEvent": true,
"messagePostFormat": "array",
"token": "",
"debug": false,
"heartInterval": 30000
}
],
"websocketClients": [],
"plugins": []
},
"musicSignUrl": "",
"enableLocalFile2Url": false,
"parseMultMsg": false
}