Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-mirai-cqhttp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-mirai-cqhttp
Commits
5fea60fa
Commit
5fea60fa
authored
Apr 29, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme
parent
6e728d6b
Pipeline
#3060
passed with stages
in 3 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
1 deletion
+74
-1
README.md
README.md
+74
-1
No files found.
README.md
View file @
5fea60fa
# docker-mirai-cqhttp
A docker image for mirai cqhttp
\ No newline at end of file
Mirai CQHTTP 镜像,支持滑块验证。
## 项目地址
https://github.com/purerosefallen/docker-mirai-cqhttp
## 建议 docker-compose
```
yaml
version
:
'
2.4'
services
:
novnc
:
restart
:
always
image
:
theasp/novnc:latest
environment
:
DISPLAY_WIDTH
:
425
DISPLAY_HEIGHT
:
900
RUN_XTERM
:
'
no'
ports
:
-
11180:8080
cqhttp
:
restart
:
always
image
:
nanahira/docker-mirai-cqhttp:x
ports
:
-
'
6700:6700'
volumes
:
-
./data:/usr/src/app/data
-
./config:/usr/src/app/config
-
./bots:/usr/src/app/bots
stdin_open
:
true
command
:
java -jar mcl.jar
environment
:
DISPLAY
:
novnc:0.0
QQ_ID
:
11111111
QQ_PASS
:
change_me
WS_PORT
:
6700
WS_TOKEN
:
change_me
```
### 说明
第一次登录时,需要在
`http://<服务器地址>:11180/vnc.html`
打开 noVNC 界面,并输入验证码。
提示需要扫码登录时,点击左侧的 noVNC 界面的剪贴板按钮,把地址复制到自己电脑的浏览器,扫码即可。
## Tag
*
`latest`
无 GUI 镜像。需要有现成的
`devices.json`
文件。
*
`x`
**推荐。**
带 GUI 镜像,需要配合 noVNC 使用以拉滑块。
## 环境变量
### 默认值
```
ENV ENV_CONFIG 1
ENV QQ_ID 11111111
ENV QQ_PASS qweqwe
ENV WS_PORT 6700
ENV WS_TOKEN qweqwe
```
### 说明
*
`ENV_CONFIG`
默认 1。如果是 1 则用下面的环境变量覆盖配置。
*
`QQ_ID`
QQ 号。
*
`QQ_PASS`
QQ 密码。
*
`WS_PORT`
Websocket 端口。
*
`WS_TOKEN`
Websocket 使用的密钥。
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment