Automated EPG Download

This commit is contained in:
Gogs
2026-07-10 14:14:41 +02:00
parent 8b68ba2e9b
commit 3ae2d14e95
3 changed files with 375 additions and 60 deletions
+30
View File
@@ -16,3 +16,33 @@ services:
- ./epg:/var/www/epg
- ./logos:/var/www/html/logos
- ./posters:/var/www/html/posters
- ./logs:/var/www/logs
epg-scheduler:
build: .
container_name: tvguide-epg-scheduler
restart: unless-stopped
environment:
EPG_UPDATE_INTERVAL: "21600"
volumes:
- ./app/src:/var/www/src
- ./app/config:/var/www/config
- ./app/cache:/var/www/cache
- ./app/bin:/var/www/bin
- ./vendor:/var/www/vendor
- ./epg:/var/www/epg
- ./logs:/var/www/logs
command:
- /bin/sh
- -c
- |
echo "TVGuide EPG-Scheduler gestartet."
echo "Intervall: $${EPG_UPDATE_INTERVAL:-21600} Sekunden"
while true; do
php /var/www/bin/update-epg.php
sleep "$${EPG_UPDATE_INTERVAL:-21600}"
done