From e2e148e768828cb4c13e77c3f8d787ac2360b131 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 7 Mar 2025 13:34:41 +0800 Subject: [PATCH] feat: astrbot --- compose/astrbot.yml | 40 ++++++++++++++++++++++++++++++++ templates/templates/astrbot.json | 2 +- templates/templates/koishi.json | 2 +- templates/templates/nonebot.json | 2 +- 4 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 compose/astrbot.yml diff --git a/compose/astrbot.yml b/compose/astrbot.yml new file mode 100644 index 0000000..d793fa2 --- /dev/null +++ b/compose/astrbot.yml @@ -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 \ No newline at end of file diff --git a/templates/templates/astrbot.json b/templates/templates/astrbot.json index 5df2acc..d2dd8cb 100644 --- a/templates/templates/astrbot.json +++ b/templates/templates/astrbot.json @@ -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": "", diff --git a/templates/templates/koishi.json b/templates/templates/koishi.json index f088638..874515f 100644 --- a/templates/templates/koishi.json +++ b/templates/templates/koishi.json @@ -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": "", diff --git a/templates/templates/nonebot.json b/templates/templates/nonebot.json index 0a37fe0..cded89e 100644 --- a/templates/templates/nonebot.json +++ b/templates/templates/nonebot.json @@ -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": "",