第一次做docker镜像emmm
首先需要两个文件,https://github.com/yjqiang/YjMonitor/

下载下来(不改名也许)

在user.toml中填入账号密码,至于ctrl.toml看个人情况吧(不懂这个东西,我直接开了20000)


然后把镜像下载下来

开始创建

点击卷,添加文件

把对应文件挂载到对应路径
/app/monitor/conf/user.toml
/app/monitor/conf/ctrl.toml

然后再把8002端口开出去就可以用了


点击应用,然后查看日志

命令行运行就简单多了,一键就跑起来了

docker run -it -v /opt/yjmonitor/user.toml:/app/monitor/conf/user.toml -v /opt/yjmonitor/ctrl.toml:/app/monitor/conf/ctrl.toml -p 8002:8002 -p 8001:8001 yuban10703/yjmonitor
然后到bili2.0的配置文件里填上key和服务器地址就好了
