nixos-configs/devices/nos/modules/docker/media/prowlarr/compose.nix

44 lines
882 B
Nix
Raw Normal View History

2024-07-24 15:49:31 -04:00
{
config,
pkgs,
...
}: let
inherit (config.khepri) rwDataDir;
rwPath = rwDataDir + "/media/prowlarr";
in {
2024-07-24 15:49:31 -04:00
khepri.compositions."prowlarr".services = {
"prowlarr" = {
2024-07-24 15:49:31 -04:00
image = import ./images/prowlarr.nix pkgs;
restart = "always";
environment = {
PUID = "1000";
PGID = "1000";
TZ = "America/New_York";
};
volumes = ["${rwPath}/data:/config"];
2024-07-24 15:49:31 -04:00
extraHosts = ["lan.nelim.org=10.0.0.130"];
ports = ["9696:9696"];
};
"flaresolverr" = {
2024-07-24 15:49:31 -04:00
image = import ./images/flaresolverr.nix pkgs;
restart = "always";
environment = {
LOG_LEVEL = "info";
LOG_HTML = "false";
CAPTCHA_SOLVER = "none";
TZ = "America/New_York";
};
2024-07-24 15:49:31 -04:00
extraHosts = ["lan.nelim.org=10.0.0.130"];
ports = ["8191:8191"];
2024-07-24 15:49:31 -04:00
dependsOn = ["prowlarr"];
};
};
}