perf: 优化docker-compose.yaml,新增chat2db数据库管理工具(可选)
This commit is contained in:
@@ -5,3 +5,5 @@ __pycache__
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
mongodb
|
mongodb
|
||||||
napcat
|
napcat
|
||||||
|
docs/
|
||||||
|
.github/
|
||||||
@@ -55,28 +55,32 @@ services:
|
|||||||
image: mlikiowa/napcat-docker:latest
|
image: mlikiowa/napcat-docker:latest
|
||||||
networks:
|
networks:
|
||||||
- maim_bot
|
- maim_bot
|
||||||
# sqlite-web:
|
sqlite-web:
|
||||||
# image: coleifer/sqlite-web
|
# 注意:coleifer/sqlite-web 镜像不支持arm64
|
||||||
# container_name: sqlite-web
|
image: coleifer/sqlite-web
|
||||||
# restart: always
|
container_name: sqlite-web
|
||||||
# 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
|
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "10824:10824"
|
- "8120:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/MaiMBot:/data/MaiMBot
|
- ./data/MaiMBot:/data/MaiMBot
|
||||||
|
environment:
|
||||||
|
- SQLITE_DATABASE=MaiMBot/MaiBot.db # 你的数据库文件
|
||||||
networks:
|
networks:
|
||||||
- maim_bot
|
- 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:
|
networks:
|
||||||
maim_bot:
|
maim_bot:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user