1、allinone指令:
docker run -d --restart unless-stopped --net=host --privileged=true -p 35455:35455 --name allinone youshandefeiyang/allinone:latest
2、配置watchtower每天凌晨两点自动监听allinone镜像更新指令:
docker run -d --name watchtower --restart unless-stopped -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower:latest allinone -c --schedule "0 0 2 * * *"
………………………………………………………………………………………..
进阶优化:
3、直播源镜像 youshandefeiyang/allinone 项目的 m3u 进行重新分组格式化:
docker run -d --restart=always -p 35456:35456 --name allinone_format yuexuangu/allinone_format:latest
请求参数说明:
h 可选参数 allinone 项目部署的内外网 IP或域名(不能使用 127.0.0.1),默认值 = 请求的内网IP
p 可选参数 allinone 项目部署的端口, 默认值 = 35455
m 可选参数 是否对频道连接进行聚合,默认值 1=聚合(强烈推荐) 0=不聚合(仅推荐不支持聚合格式的壳子使用)
t 可选参数 输出格式 默认值 0=m3u, 1=text
这就是优化后的播放地址:
http://<IP替换>:35456/tv.php?h=<IP替换>&p=35455&m=1&t=0
在TVBOX相似APP内可以使用上面地址看直播
写在最后:




最新评论