{"id":13762335,"url":"https://github.com/rxrw/mirai-docker-starter","last_synced_at":"2025-05-10T15:31:15.990Z","repository":{"id":112108842,"uuid":"329608862","full_name":"rxrw/mirai-docker-starter","owner":"rxrw","description":"使用Docker直接启动Mirai","archived":true,"fork":false,"pushed_at":"2022-06-13T03:13:11.000Z","size":19514,"stargazers_count":44,"open_issues_count":1,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T14:05:22.407Z","etag":null,"topics":["docker","docker-compose","http","mirai","qqbot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rxrw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-01-14T12:28:16.000Z","updated_at":"2024-08-03T14:05:22.408Z","dependencies_parsed_at":null,"dependency_job_id":"df0fadc3-2c68-4b06-a821-29752011165d","html_url":"https://github.com/rxrw/mirai-docker-starter","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxrw%2Fmirai-docker-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxrw%2Fmirai-docker-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxrw%2Fmirai-docker-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxrw%2Fmirai-docker-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxrw","download_url":"https://codeload.github.com/rxrw/mirai-docker-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224974208,"owners_count":17401100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","docker-compose","http","mirai","qqbot"],"created_at":"2024-08-03T14:00:39.013Z","updated_at":"2024-11-16T21:30:22.920Z","avatar_url":"https://github.com/rxrw.png","language":"JavaScript","funding_links":[],"categories":["其他优秀项目"],"sub_categories":[],"readme":"\u003e 由于我的QQ不停地被封禁，因此无法支持此项目继续开发，欢迎大家使用Fork后的项目 😭\n\n\u003cdiv align=\"center\"\u003e\n   \u003cimg width=\"160\" src=\"https://github.com/mamoe/mirai/blob/dev/docs/mirai.png\" alt=\"logo\"\u003e\u003c/br\u003e\n\n   \u003cimg width=\"95\" src=\"https://github.com/mamoe/mirai/blob/dev/docs/mirai.svg\" alt=\"title\"\u003e\n\n---\n\n[![Gitter](https://badges.gitter.im/mamoe/mirai.svg)](https://gitter.im/mamoe/mirai?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n[![Actions Status](https://github.com/mamoe/mirai-api-http/workflows/Gradle%20CI/badge.svg)](https://github.com/mamoe/mirai-api-http/actions)\n\nMirai 是一个在全平台下运行，提供 QQ Android 和 TIM PC 协议支持的高效率机器人框架\n\n这个项目的名字来源于\n\n\u003cp\u003e\u003ca href = \"http://www.kyotoanimation.co.jp/\"\u003e京都动画\u003c/a\u003e作品\u003ca href = \"https://zh.moegirl.org/zh-hans/%E5%A2%83%E7%95%8C%E7%9A%84%E5%BD%BC%E6%96%B9\"\u003e《境界的彼方》\u003c/a\u003e的\u003ca href = \"https://zh.moegirl.org/zh-hans/%E6%A0%97%E5%B1%B1%E6%9C%AA%E6%9D%A5\"\u003e栗山未来(Kuriyama \u003cb\u003eMirai\u003c/b\u003e)\u003c/a\u003e\u003c/p\u003e\n\u003cp\u003e\u003ca href = \"https://www.crypton.co.jp/\"\u003eCRYPTON\u003c/a\u003e以\u003ca href = \"https://www.crypton.co.jp/miku_eng\"\u003e初音未来\u003c/a\u003e为代表的创作与活动\u003ca href = \"https://magicalmirai.com/2019/index_en.html\"\u003e(Magical \u003cb\u003eMirai\u003c/b\u003e)\u003c/a\u003e\u003c/p\u003e\n图标以及形象由画师\u003ca href = \"\"\u003eDazeCake\u003c/a\u003e绘制\n\n\u003c/div\u003e\n\u003cbr/\u003e\n\n# mirai-http-docker\n\nMirai HTTP Docker 一键启动环境\n\n\u003cb\u003eMirai-API-http 插件 提供 HTTP API 供所有语言使用 mirai\u003c/b\u003e\n\n\u003cb\u003e这个项目旨在对想直接用`Mirai-API-http`进行开发的同学们直接启动 Mirai + HTTP 服务\u003c/b\u003e\n\n## 玩法\n\n一键启动：\n\n```bash\n# 生成配置文件\ndocker run --rm -it -v ./config:/app/config reprover/mirai-http:latest\n\n#(如果需要其它插件，可以映射目录进去)\ndocker run --rm -it -v ./config:/app/config -v ./plugins:/app/plugins reprover/mirai-http:latest\n\n\n#按自己需要修改配置然后运行\ndocker run -d -p 8080:8080 -v ./config:/app/config [-v ./plugins:/app/plugins] reprover/mirai-http:latest\n```\n\n容器默认开 8080 端口，与 Mirai-HTTP-API 默认配置一致，有需要可以自己映射\n\n建议使用 [docker-compose](https://github.com/rxrw/mirai-docker-starter/blob/master/docker-compose.yml) 一键启动：\n\n```bash\n#第一次生成配置文件\ndocker-compose up\n\n#修改配置文件\ndocker-compose up -d\n```\n\n## 当前版本\n\n| 插件                 | 版本   | 源代码 |\n| -------------------- | ------ | ---- |\n| mirai-console-loader | 2.0.0  | \u003chttps://github.com/iTXTech/mirai-console-loader\u003e |\n| mirai-http-api       | 2.5.0 | \u003chttps://github.com/project-mirai/mirai-api-http\u003e |\n| mirai-core-all       | 2.10.1  | \u003chttps://github.com/project-mirai/mirai-repo-mirror\u003e |\n\n## 限制\n\n### docker\n\ndocker 是容器服务，因此端口开放但网络出口是 docker 的 bridge 环境。\n\n建议编写好的项目直接使用 docker-compose 同网络调用\n\n也可将 network 的 mode 设置为 host 使用主机网卡。\n\n### console\n\nconsole 启动的时候会检查更新，目前已经把最新版 stable-2.7.0 内置了，有需要可以调整`config.json`。\n\n### cli\n\n由于是 docker 脚本，因此直接启动是启动的 `console` 无交互界面，如需进交互，可以\n\n```bash\ndocker-compose exec mirai\n```\n\n不知道是什么原因，在非交互界面时使用 `docker run` 运行起来的进程关不掉，可以用 `docker kill` ，也可以在运行的时候使用 `docker run -it` 进入交互式界面。在 `docker-compose` 下是正常的。\n\n\u003e 本镜像版本与 mirai-console-loader + mirai-http-api 版本保持同步\n\n### 说明\n\n项目中的 `mcl` 是来自官方 `mirai-console-loader` 的 `github release`， plugins 目录下的 `mirai-http-api` 来自 `github release` 。\n\n大家可以随意添加自己需要的插件进去。\n~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxrw%2Fmirai-docker-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxrw%2Fmirai-docker-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxrw%2Fmirai-docker-starter/lists"}