2025-01-30 23:25:25 -05:00
|
|
|
rwDataDir: {pkgs, ...}: let
|
2024-02-28 22:22:14 -05:00
|
|
|
rwPath = rwDataDir + "/media/prowlarr";
|
|
|
|
in {
|
2025-01-30 23:25:25 -05:00
|
|
|
virtualisation.docker.compose."prowlarr" = {
|
2024-07-24 20:52:32 -04:00
|
|
|
networks.proxy_net = {external = true;};
|
2024-02-28 22:22:14 -05:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
services = {
|
|
|
|
"prowlarr" = {
|
2025-01-30 23:25:25 -05:00
|
|
|
image = pkgs.callPackage ./images/prowlarr.nix pkgs;
|
2024-07-24 20:52:32 -04:00
|
|
|
restart = "always";
|
2024-02-28 22:22:14 -05:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
environment = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "1000";
|
|
|
|
TZ = "America/New_York";
|
|
|
|
};
|
2024-02-28 22:22:14 -05:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
volumes = ["${rwPath}/data:/config"];
|
2024-08-11 14:53:45 -04:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
ports = ["9696:9696"];
|
|
|
|
networks = ["proxy_net"];
|
2024-02-28 22:22:14 -05:00
|
|
|
};
|
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
"flaresolverr" = {
|
2025-01-30 23:25:25 -05:00
|
|
|
image = pkgs.callPackage ./images/flaresolverr.nix pkgs;
|
2024-07-24 20:52:32 -04:00
|
|
|
restart = "always";
|
|
|
|
|
|
|
|
environment = {
|
|
|
|
LOG_LEVEL = "info";
|
|
|
|
LOG_HTML = "false";
|
|
|
|
CAPTCHA_SOLVER = "none";
|
|
|
|
TZ = "America/New_York";
|
2024-09-30 09:56:35 -04:00
|
|
|
|
|
|
|
# https://github.com/FlareSolverr/FlareSolverr/pull/1300#issuecomment-2379596654
|
|
|
|
DRIVER = "nodriver";
|
2024-07-24 20:52:32 -04:00
|
|
|
};
|
2024-02-28 22:22:14 -05:00
|
|
|
|
2024-07-24 20:52:32 -04:00
|
|
|
ports = ["8191:8191"];
|
|
|
|
|
2025-01-30 23:25:25 -05:00
|
|
|
depends_on = ["prowlarr"];
|
2024-07-24 20:52:32 -04:00
|
|
|
networks = ["proxy_net"];
|
|
|
|
};
|
2024-02-28 22:22:14 -05:00
|
|
|
};
|
|
|
|
};
|
2025-01-30 23:25:25 -05:00
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./compose.nix;
|
2024-02-28 22:22:14 -05:00
|
|
|
}
|