built sonarr
This commit is contained in:
parent
f411a081c5
commit
b8da39f481
2 changed files with 26 additions and 5 deletions
|
@ -30,9 +30,7 @@
|
||||||
swag_url = "calibre-web.icanttype.org";
|
swag_url = "calibre-web.icanttype.org";
|
||||||
swag_port = "8083";
|
swag_port = "8083";
|
||||||
};
|
};
|
||||||
extraOptions = [
|
extraOptions = [ "--network=www" ];
|
||||||
"--network=www"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,16 +1,39 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
containers.enable = true;
|
containers.enable = true;
|
||||||
podman.enable = true;
|
podman.enable = true;
|
||||||
oci-containers.containers = {
|
oci-containers.containers = {
|
||||||
sonarr = {
|
sonarr = {
|
||||||
image = "lscr.io/linuxserver/sonarr:latest";
|
image = "my-sonarr:latest";
|
||||||
|
imageFile = pkgs.dockerTools.buildLayeredImage {
|
||||||
|
name = "my-sonarr";
|
||||||
|
tag = "latest";
|
||||||
|
contents = [ pkgs.busybox ];
|
||||||
|
config = {
|
||||||
|
User = "911:911";
|
||||||
|
Umask = "002";
|
||||||
|
Cmd = [
|
||||||
|
"${pkgs.sonarr}/bin/NzbDrone"
|
||||||
|
"-nobrowser"
|
||||||
|
"-data=/config"
|
||||||
|
];
|
||||||
|
Env = [
|
||||||
|
"COMPlus_EnableDiagnostics=0"
|
||||||
|
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
volumes = [
|
volumes = [
|
||||||
"sonarr-config:/config"
|
"sonarr-config:/config"
|
||||||
"/video-data:/data"
|
"/video-data:/data"
|
||||||
];
|
];
|
||||||
environment.TZ = "America/New_York";
|
environment.TZ = "America/New_York";
|
||||||
labels.swag = "enable";
|
labels = {
|
||||||
|
swag = "enable";
|
||||||
|
swag_url = "sonarr.icanttype.org";
|
||||||
|
swag_port = "8989";
|
||||||
|
};
|
||||||
extraOptions = [
|
extraOptions = [
|
||||||
"--pull=newer"
|
"--pull=newer"
|
||||||
"--network=www"
|
"--network=www"
|
||||||
|
|
Loading…
Reference in a new issue