2024-01-23 09:45:42 +08:00
|
|
|
{ ... }:
|
2024-06-16 23:08:52 +08:00
|
|
|
let
|
|
|
|
port = "5055";
|
|
|
|
in
|
2024-01-23 09:45:42 +08:00
|
|
|
{
|
|
|
|
virtualisation.oci-containers.containers = {
|
|
|
|
# Request management
|
|
|
|
jellyseerr = {
|
|
|
|
autoStart = true;
|
2024-06-16 23:08:52 +08:00
|
|
|
image = "ghcr.io/hotio/jellyseerr:release-1.9.2";
|
2024-01-23 09:45:42 +08:00
|
|
|
ports = [
|
2024-06-16 23:08:52 +08:00
|
|
|
"${port}:5055/tcp" # WebUI
|
2024-01-23 09:45:42 +08:00
|
|
|
];
|
|
|
|
volumes = [
|
|
|
|
"/srv/containers/jellyseerr:/config"
|
|
|
|
];
|
2024-06-16 23:08:52 +08:00
|
|
|
environment = {
|
|
|
|
PUID = "1000";
|
|
|
|
PGID = "100";
|
|
|
|
};
|
2024-01-23 09:45:42 +08:00
|
|
|
extraOptions = [
|
|
|
|
"--network=media-stack"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
2024-06-05 21:14:22 +08:00
|
|
|
|
|
|
|
services.traefik.dynamicConfigOptions.http.routers = {
|
|
|
|
jellyseerr = {
|
|
|
|
rule = "Host(`jellyseerr.kanto.dev`)";
|
|
|
|
entryPoints = [
|
|
|
|
"websecure"
|
|
|
|
];
|
|
|
|
middlewares = [
|
|
|
|
"internal"
|
|
|
|
];
|
|
|
|
service = "jellyseerr";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
services.traefik.dynamicConfigOptions.http.services = {
|
|
|
|
jellyseerr.loadBalancer.servers = [
|
2024-06-16 23:08:52 +08:00
|
|
|
{ url = "http://127.0.0.1:${port}"; }
|
2024-06-05 21:14:22 +08:00
|
|
|
];
|
|
|
|
};
|
2024-01-23 09:45:42 +08:00
|
|
|
}
|
2024-06-05 21:14:22 +08:00
|
|
|
|