28 lines
483 B
Nix
28 lines
483 B
Nix
|
{config, ...}: let
|
||
|
inherit (config.arion) rwDataDir;
|
||
|
|
||
|
rwPath = rwDataDir + "/media/sabnzbd";
|
||
|
in {
|
||
|
arion.projects."sabnzbd"."sabnzbd" = {
|
||
|
image = ./images/sabnzbd.nix;
|
||
|
restart = "always";
|
||
|
|
||
|
ports = ["8382:8082"];
|
||
|
|
||
|
environment = {
|
||
|
PUID = "1000";
|
||
|
PGID = "1000";
|
||
|
TZ = "America/New_York";
|
||
|
};
|
||
|
|
||
|
volumes = [
|
||
|
"${rwPath}/data:/config"
|
||
|
"/data:/data"
|
||
|
];
|
||
|
|
||
|
extraOptions = {
|
||
|
deploy.resources.limits.cpus = "2";
|
||
|
};
|
||
|
};
|
||
|
}
|