47 lines
1,023 B
Nix
47 lines
1,023 B
Nix
{...}: let
|
|
port = "8686";
|
|
in {
|
|
virtualisation.oci-containers.containers = {
|
|
# # Music collection manager for Usenet and BitTorrent users
|
|
lidarr = {
|
|
autoStart = true;
|
|
image = "ghcr.io/hotio/lidarr:release-2.7.1.4417";
|
|
ports = [
|
|
"${port}:8686/tcp" # WebUI
|
|
];
|
|
volumes = [
|
|
# Media library
|
|
"/srv/multimedia:/data:rw"
|
|
# Container data
|
|
"/srv/multimedia/containers/lidarr:/config:rw"
|
|
];
|
|
environment = {
|
|
PUID = "1000";
|
|
PGID = "100";
|
|
};
|
|
extraOptions = [
|
|
"--network=media-stack"
|
|
];
|
|
};
|
|
};
|
|
|
|
services.traefik.dynamicConfigOptions.http.routers = {
|
|
lidarr = {
|
|
rule = "Host(`lidarr.home.arpa`)";
|
|
entryPoints = [
|
|
"websecure"
|
|
];
|
|
middlewares = [
|
|
"internal"
|
|
];
|
|
service = "lidarr";
|
|
};
|
|
};
|
|
|
|
services.traefik.dynamicConfigOptions.http.services = {
|
|
lidarr.loadBalancer.servers = [
|
|
{url = "http://127.0.0.1:${port}";}
|
|
];
|
|
};
|
|
}
|