Move EPG to docker (podman) container

This commit is contained in:
Jan Kremer 2026-02-20 14:01:26 +01:00
parent 509cba0c51
commit a90011ae2f
No known key found for this signature in database

View file

@ -1,24 +1,14 @@
{ pkgs, ... }:
{
services.jellyfin.enable = true; # port = 8096
## Grab EPG data daily
systemd = {
services = {
virtualisation.oci-containers = {
containers = {
epg = {
script = "${pkgs.nodejs}/bin/npm run --prefix /mnt/media/TV/epg/ grab --- --channels=/mnt/media/TV/custom.channels.xml";
path = [
pkgs.bash
pkgs.nodejs
];
serviceConfig = {
Type = "oneshot";
User = "root";
};
## Creates a timer
startAt = "daily";
image = "ghcr.io/iptv-org/epg:master";
ports = [ "3001:3000" ];
volumes = [ "/mnt/media/TV/custom.channels.xml:/epg/public/channels.xml" ];
};
};
timers.epg.timerConfig.Persistent = true;
};
}