49 lines
1,011 B
Nix
49 lines
1,011 B
Nix
{ ... }:
|
|
let
|
|
port = "7878";
|
|
in
|
|
{
|
|
virtualisation.oci-containers.containers = {
|
|
# Movie collection manager for Usenet and BitTorrent users
|
|
radarr = {
|
|
autoStart = true;
|
|
image = "ghcr.io/hotio/radarr:release-5.6.0.8846";
|
|
ports = [
|
|
"${port}:7878/tcp" # WebUI
|
|
];
|
|
volumes = [
|
|
# Media library
|
|
"/srv/multimedia:/data:rw"
|
|
# Container data
|
|
"/srv/containers/radarr:/config:rw"
|
|
];
|
|
environment = {
|
|
PUID = "1000";
|
|
PGID = "100";
|
|
};
|
|
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 = [
|
|
{ url = "http://127.0.0.1:${port}"; }
|
|
];
|
|
};
|
|
}
|
|
|