perf: 优化docker-compose.yaml,新增chat2db数据库管理工具(可选)

This commit is contained in:
infinitycat
2025-07-07 20:03:53 +08:00
parent b31892374c
commit a0b4037a26
2 changed files with 23 additions and 17 deletions

View File

@@ -4,4 +4,6 @@ __pycache__
*.pyd
.DS_Store
mongodb
napcat
napcat
docs/
.github/

View File

@@ -55,28 +55,32 @@ services:
image: mlikiowa/napcat-docker:latest
networks:
- maim_bot
# sqlite-web:
# image: coleifer/sqlite-web
# container_name: sqlite-web
# restart: always
# ports:
# - "8120:8080"
# volumes:
# - ./data/MaiMBot:/data/MaiMBot
# environment:
# - SQLITE_DATABASE=MaiMBot/MaiBot.db # 你的数据库文件
# networks:
# - maim_bot
chat2db:
image: chat2db/chat2db:latest
container_name: maim-bot-chat2db
sqlite-web:
# 注意:coleifer/sqlite-web 镜像不支持arm64
image: coleifer/sqlite-web
container_name: sqlite-web
restart: always
ports:
- "10824:10824"
- "8120:8080"
volumes:
- ./data/MaiMBot:/data/MaiMBot
environment:
- SQLITE_DATABASE=MaiMBot/MaiBot.db # 你的数据库文件
networks:
- maim_bot
# chat2db占用相对较高但是功能强大
# 内存占用约600m内存充足推荐选此
# chat2db:
# image: chat2db/chat2db:latest
# container_name: maim-bot-chat2db
# restart: always
# ports:
# - "10824:10824"
# volumes:
# - ./data/MaiMBot:/data/MaiMBot
# networks:
# - maim_bot
networks:
maim_bot:
driver: bridge