mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-01-11 09:44:08 -05:00
jellyfin + tubearchivist
This commit is contained in:
parent
b3689c7b9f
commit
9e3f5ac710
2 changed files with 56 additions and 1 deletions
|
|
@ -54,6 +54,8 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
virtualisation.oci-containers.backend = lib.mkDefault "podman";
|
||||
|
||||
nix.settings = {
|
||||
connect-timeout = 5;
|
||||
log-lines = 25;
|
||||
|
|
|
|||
|
|
@ -3,9 +3,62 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
}: let
|
||||
volumePath = "/overseer/services";
|
||||
in {
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
|
||||
# Tube Archivist
|
||||
virtualisation.oci-containers.containers = {
|
||||
tubearchivist = {
|
||||
image = "bbilly1/tubearchivist";
|
||||
extraOptions = ["--ip=10.88.0.14"];
|
||||
volumes = [
|
||||
"${volumePath}/tubearchivist/ta/youtube:/youtube"
|
||||
"${volumePath}/tubearchivist/ta/cache:/cache"
|
||||
];
|
||||
environment = {
|
||||
ES_URL = "http://10.88.0.16:9200";
|
||||
REDIS_CON = "redis://10.88.0.15:6379";
|
||||
HOST_UID = "1000";
|
||||
HOST_GID = "1000";
|
||||
TA_HOST = "http://192.168.0.30:8000";
|
||||
TA_USERNAME = "tubearchivist";
|
||||
TA_PASSWORD = "verysecret";
|
||||
ELASTIC_PASSWORD = "verysecret";
|
||||
TZ = "America/New_York";
|
||||
};
|
||||
dependsOn = [
|
||||
"archivist-redis"
|
||||
"archivist-es"
|
||||
];
|
||||
};
|
||||
archivist-redis = {
|
||||
image = "redis";
|
||||
extraOptions = ["--ip=10.88.0.15"];
|
||||
volumes = [
|
||||
"${volumePath}/tubearchivist/redis:/data"
|
||||
];
|
||||
dependsOn = [
|
||||
"archivist-es"
|
||||
];
|
||||
};
|
||||
archivist-es = {
|
||||
image = "bbilly1/tubearchivist-es";
|
||||
extraOptions = ["--ip=10.88.0.16"];
|
||||
environment = {
|
||||
ELASTIC_PASSWORD = "verysecret";
|
||||
ES_JAVA_OPTS = "-Xms1g -Xmx1g";
|
||||
"xpack.security.enabled" = "true";
|
||||
"discovery.type" = "single-node";
|
||||
"path.repo" = "/usr/share/elasticsearch/data/snapshot";
|
||||
};
|
||||
volumes = [
|
||||
"${volumePath}/tubearchivist/es:/usr/share/elasticsearch/data"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue