-
配置
Docker
环境 -
拉取镜像并运行:
docker run -d \--name php-epg \-v /etc/epg:/htdocs/data \-p 5678:80 \--restart unless-stopped \taksss/php-epg:latest
默认数据目录为
/etc/epg
,根据需要自行修改默认端口为
5678
,根据需要自行修改(注意端口占用)可选参数:
-e PHP_MEMORY_LIMIT=512M
,设置 PHP 内存限制,默认512M
可选参数:
-e ENABLE_FFMPEG=true
,启用 ffmpeg 组件无法正常拉取镜像的,可使用同步更新的
腾讯云容器镜像
(ccr.ccs.tencentyun.com/taksss/php-epg:latest
)
(可选)同时部署 MySQL 、 phpMyAdmin 及 php-epg
🆙 版本升级
一键升级
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower php-epg --cleanup --run-once
自动检测
docker run -d --name php-epg-update -v /var/run/docker.sock:/var/run/docker.sock --restart unless-stopped containrrr/watchtower php-epg --cleanup --interval 3600
🛠️ 使用步骤
-
在浏览器中打开
http://{服务器IP地址}:5678/manage.php
-
默认密码为空,根据需要自行设置
-
添加
EPG 地址
, GitHub 源确保能够访问,点击保存配置
保存 -
点击
更新数据
拉取数据,点击更新日志
查看日志,点击频道管理
查看具体条目 -
设置
定时任务
,点击保存配置
保存,点击定时日志
查看定时任务时间表建议从
凌晨1点
左右开始抓,很多源00:00 ~ 00:30
都是无数据。 隔6 ~ 12
小时抓一次即可。 -
点击
更多设置
,选择是否生成xml文件
、xml内容
,设置匹配频道列表
-
测试各个接口的返回结果是否正确:
xmltv
接口:http://{服务器IP地址}:5678/index.php
DIYP&百川
接口:http://{服务器IP地址}:5678/index.php?ch=CCTV1
超级直播
接口:http://{服务器IP地址}:5678/index.php?channel=CCTV1
tvbox
接口:"epg":"http://{服务器IP地址}:5678/index.php?ch={name}&date={date}"
"logo":"http://{服务器IP地址}:5678/index.php?ch={name}&type=icon"
- 将
http://{服务器IP地址}:5678/index.php
填入DIYP
、TiviMate
等软件的EPG 地址栏
- ⚠️ 直接使用
docker run
运行的话,可以将:5678/index.php
替换为:5678/
。 - ⚠️ 部分软件不支持跳转解析
xmltv
文件,可直接使用:5678/t.xml.gz
或:5678/t.xml
访问。
快捷键:
Ctrl + S
:保存设置Ctrl + /
:对选中 EPG 地址设置(取消)注释
原GitHub地址为:taksssss/EPG-Server: 用 php 实现的 EPG 服务端, Docker🐳 部署,带设置界面、台标管理、直播源管理,支持 DIYP & 百川 、 超级直播 以及 xmltv 格式。
侵权删!!!!!本教程只为自用,防止教程丢失做的备份