dotfiles.nix/nixos/viridian/containers/radarr.nix

43 lines
906 B
Nix
Raw Normal View History

2024-01-23 09:45:42 +08:00
{ ... }:
{
virtualisation.oci-containers.containers = {
# Movie collection manager for Usenet and BitTorrent users
radarr = {
autoStart = true;
image = "ghcr.io/hotio/radarr:nightly-5.1.3.8237";
ports = [
"7878:7878/tcp" # WebUI
];
volumes = [
# Media library
"/srv/multimedia:/data:rw"
# Container data
"/srv/containers/radarr:/config:rw"
];
extraOptions = [
"--network=media-stack"
];
};
};
services.traefik.dynamicConfigOptions.http.routers = {
radarr = {
rule = "Host(`radarr.kanto.dev`)";
entryPoints = [
"websecure"
];
middlewares = [
"admin"
];
service = "radarr";
};
};
services.traefik.dynamicConfigOptions.http.services = {
radarr.loadBalancer.servers = [
2024-06-05 23:09:46 +08:00
{ url = "http://127.0.0.1:7878"; }
];
};
2024-01-23 09:45:42 +08:00
}