feat: astrbot

This commit is contained in:
手瓜一十雪 2025-03-07 13:34:41 +08:00
parent bd117b7dc9
commit e2e148e768
4 changed files with 43 additions and 3 deletions

40
compose/astrbot.yml Normal file
View File

@ -0,0 +1,40 @@
version: '3.8'
services:
astrbot:
image: soulter/astrbot:latest
container_name: astrbot
ports:
- "6185:6185"
- "6195:6195"
- "6199:6199"
- "6196:6196"
- "11451:11451"
volumes:
- ./data:/AstrBot/data
networks:
- astrbot_network
napcat:
environment:
- NAPCAT_UID=${NAPCAT_UID}
- NAPCAT_GID=${NAPCAT_GID}
- MODE=astrbot
ports:
- 3000:3000
- 3001:3001
- 6099:6099
container_name: napcat
network_mode: bridge
restart: always
image: mlikiowa/napcat-docker:latest
volumes:
- ./napcat:/app/napcat/config
- ./ntqq:/app/.config/QQ
networks:
- astrbot_network
mac_address: "02:42:ac:11:00:02"
networks:
astrbot_network:
driver: bridge

View File

@ -8,7 +8,7 @@
{
"enable": true,
"name": "rws",
"url": "ws://127.0.0.1:6199/ws",
"url": "ws://astrbot:6199/ws",
"reportSelfMessage": false,
"messagePostFormat": "array",
"token": "",

View File

@ -8,7 +8,7 @@
{
"enable": true,
"name": "rws",
"url": "ws://127.0.0.1:5140/onebot",
"url": "ws://koishi:5140/onebot",
"reportSelfMessage": false,
"messagePostFormat": "array",
"token": "",

View File

@ -8,7 +8,7 @@
{
"enable": true,
"name": "rws",
"url": "ws://127.0.0.1:8080/onebot/v11/ws",
"url": "ws://nonebot:8080/onebot/v11/ws",
"reportSelfMessage": false,
"messagePostFormat": "array",
"token": "",