Move EPG to docker (podman) container
This commit is contained in:
parent
509cba0c51
commit
a90011ae2f
1 changed files with 5 additions and 15 deletions
|
|
@ -1,24 +1,14 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
{
|
||||||
services.jellyfin.enable = true; # port = 8096
|
services.jellyfin.enable = true; # port = 8096
|
||||||
|
|
||||||
## Grab EPG data daily
|
## Grab EPG data daily
|
||||||
systemd = {
|
virtualisation.oci-containers = {
|
||||||
services = {
|
containers = {
|
||||||
epg = {
|
epg = {
|
||||||
script = "${pkgs.nodejs}/bin/npm run --prefix /mnt/media/TV/epg/ grab --- --channels=/mnt/media/TV/custom.channels.xml";
|
image = "ghcr.io/iptv-org/epg:master";
|
||||||
path = [
|
ports = [ "3001:3000" ];
|
||||||
pkgs.bash
|
volumes = [ "/mnt/media/TV/custom.channels.xml:/epg/public/channels.xml" ];
|
||||||
pkgs.nodejs
|
|
||||||
];
|
|
||||||
serviceConfig = {
|
|
||||||
Type = "oneshot";
|
|
||||||
User = "root";
|
|
||||||
};
|
|
||||||
## Creates a timer
|
|
||||||
startAt = "daily";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
timers.epg.timerConfig.Persistent = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue