Files
Mofox-Core/docker-compose.yml
明天好像没什么 892a4ec455 ci(docker): 重构CI/CD流程,支持多架构构建与自动推送
- 启用push触发,支持master/dev分支及版本标签
- 新增ARM64独立构建任务,使用ubuntu-24.04-arm运行器
- 引入docker/metadata-action自动生成标签,支持分支、标签、semver及sha
- 采用push-by-digest方式分别构建AMD64/ARM64镜像,最后合并多架构manifest
- 移除maim_message与MaiMBot-LPMM子模块克隆步骤,镜像名由maibot改为mofox
- docker-compose同步更新镜像名、容器名及挂载路径,保持与CI一致
2025-11-19 23:23:09 +08:00

54 lines
1.4 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

services:
core:
container_name: MoFox-Bot
#### prod ####
image: hunuon/mofox:latest
#### dev ####
# image: hunuon/mofox:dev
environment:
- TZ=Asia/Shanghai
volumes:
- ./docker-config/core/.env:/app/.env # 持久化env配置文件
- ./docker-config/core:/app/config # 持久化bot配置文件
- ./data/core/maibot_statistics.html:/app/maibot_statistics.html #统计数据输出
- ./data/app:/app/data # 共享目录
- ./data/core/plugins:/app/plugins # 插件目录
- ./data/core/logs:/app/logs # 日志目录
restart: always
networks:
- mofox
napcat:
environment:
- NAPCAT_UID=1000
- NAPCAT_GID=1000
- TZ=Asia/Shanghai
ports:
- "6099:6099"
volumes:
- ./docker-config/napcat:/app/napcat/config # 持久化napcat配置文件
- ./data/qq:/app/.config/QQ # 持久化QQ本体
- ./data/app:/app/data # 共享目录
container_name: mofox-napcat
restart: always
image: mlikiowa/napcat-docker:latest
networks:
- mofox
# chat2db占用相对较高但是功能强大
# 内存占用约600m内存充足推荐选此
# chat2db:
# image: chat2db/chat2db:latest
# container_name: maim-bot-chat2db
# restart: always
# ports:
# - "10824:10824"
# volumes:
# - ./data/chat2db:/data/app
# networks:
# - mofox
volumes:
site-packages:
networks:
mofox:
driver: bridge