mirror of
https://github.com/NapNeko/NapCat-Docker.git
synced 2025-12-18 22:06:41 +08:00
feat: q2tg 没改好版本
This commit is contained in:
parent
194d0071e6
commit
1b32e6f319
43
compose/q2tg.yml
Normal file
43
compose/q2tg.yml
Normal 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
|
||||||
26
templates/templates/q2tg.json
Normal file
26
templates/templates/q2tg.json
Normal 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
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user