Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ 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/MaiBot.db:/data/MaiBot.db
environment:
- SQLITE_DATABASE=MaiBot.db # 你的数据库文件

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Consider using an environment variable for the database name instead of hardcoding it. This would allow for easier configuration changes without modifying the docker-compose file.

      - SQLITE_DATABASE=${SQLITE_DATABASE:-MaiBot.db}  # 你的数据库文件

networks:
- maim_bot
networks:
maim_bot:
driver: bridge
driver: bridge
Loading