44 lines
913 B
Nix
44 lines
913 B
Nix
{ ... }:
|
|
|
|
{
|
|
virtualisation.oci-containers.containers = {
|
|
# # Music collection manager for Usenet and BitTorrent users
|
|
lidarr = {
|
|
autoStart = true;
|
|
image = "ghcr.io/hotio/lidarr:nightly-2.0.2.3782";
|
|
ports = [
|
|
"8686:8686/tcp" # WebUI
|
|
];
|
|
volumes = [
|
|
# Media library
|
|
"/srv/multimedia:/data:rw"
|
|
# Container data
|
|
"/srv/containers/lidarr:/config:rw"
|
|
];
|
|
extraOptions = [
|
|
"--network=media-stack"
|
|
];
|
|
};
|
|
};
|
|
|
|
services.traefik.dynamicConfigOptions.http.routers = {
|
|
lidarr = {
|
|
rule = "Host(`lidarr.kanto.dev`)";
|
|
entryPoints = [
|
|
"websecure"
|
|
];
|
|
middlewares = [
|
|
"admin"
|
|
];
|
|
service = "lidarr";
|
|
};
|
|
};
|
|
|
|
services.traefik.dynamicConfigOptions.http.services = {
|
|
lidarr.loadBalancer.servers = [
|
|
{ url = "http://192.168.1.102:8686"; }
|
|
];
|
|
};
|
|
}
|
|
|