initial work on iu + more compose refactoring
This commit is contained in:
1 parent
1e8cf01461
commit
ed6eee18b8
2 files changed
+83
-4
No files matched your search
+81
-4
@@ -4,7 +4,7 @@ let
|
||||
audiobookshelf = 8000;
|
||||
nixServe = 5000;
|
||||
dockerRegistry = 5001;
|
||||
postgres = 5432;
|
||||
postgresIU = 7491;
|
||||
ssh = 22;
|
||||
iu = 1947;
|
||||
};
|
||||
@@ -21,7 +21,7 @@ let
|
||||
ports.audiobookshelf
|
||||
gitea.sshPort
|
||||
gitea.httpPort
|
||||
ports.postgres
|
||||
ports.postgresIU
|
||||
ports.ssh
|
||||
ports.iu
|
||||
];
|
||||
@@ -98,10 +98,10 @@ in
|
||||
db = {
|
||||
image = "postgres:18";
|
||||
ports = [
|
||||
"${toString ports.postgres}:5432"
|
||||
"${toString ports.postgresIU}:5432"
|
||||
];
|
||||
volumes = [
|
||||
"/var/lib/iu:/opt/data"
|
||||
"/var/lib/iu-postgres:/var/lib/postgresql/data"
|
||||
];
|
||||
environmentFiles = [ config.age.secrets.iu-project.path ];
|
||||
networks = [ "main" ];
|
||||
@@ -111,13 +111,90 @@ in
|
||||
ports = [
|
||||
"${toString ports.iu}:1947"
|
||||
];
|
||||
# Explicit command matches the Containerfile ENTRYPOINT + CMD
|
||||
command = [
|
||||
"-config"
|
||||
"/app/config.toml"
|
||||
"-mode"
|
||||
"worker+webapp"
|
||||
];
|
||||
volumes = [
|
||||
];
|
||||
environmentFiles = [
|
||||
config.age.secrets.iu-project.path
|
||||
];
|
||||
networks = [
|
||||
"main"
|
||||
];
|
||||
dependsOn = [ "db" ];
|
||||
files = {
|
||||
"/app/config.toml" = ''
|
||||
[web]
|
||||
host = "0.0.0.0"
|
||||
port = 1947
|
||||
|
||||
[features]
|
||||
publish_alt_translations = true
|
||||
enable_favourite_marking = true
|
||||
|
||||
[database]
|
||||
driver = "postgres"
|
||||
dsn = "postgres://postgres@db:5432/iu?sslmode=disable"
|
||||
password_env = "POSTGRES_PASSWORD"
|
||||
|
||||
[worker]
|
||||
poll_interval_seconds = 1
|
||||
job_timeout_seconds = 1200
|
||||
|
||||
[worker.job.ingest]
|
||||
enabled = true
|
||||
interval_seconds = 21600
|
||||
|
||||
[worker.job.classify_scan]
|
||||
enabled = true
|
||||
|
||||
[worker.job.classify]
|
||||
enabled = true
|
||||
|
||||
[worker.queue.translate]
|
||||
enabled = true
|
||||
|
||||
[worker.queue.rewrite]
|
||||
enabled = true
|
||||
|
||||
[worker.queue.term_remap]
|
||||
enabled = true
|
||||
|
||||
[worker.queue.reason_backfill]
|
||||
enabled = true
|
||||
|
||||
[worker.queue.scan]
|
||||
enabled = true
|
||||
interval_seconds = 21600
|
||||
|
||||
[data-science.ollama]
|
||||
base_url = "http://fwdesk.lab.internal"
|
||||
port = 11434
|
||||
timeout_seconds = 120
|
||||
|
||||
[data-science.ollama.models]
|
||||
rewrite_heb = "aya-expanse"
|
||||
rewrite_ru = "aya-expanse"
|
||||
rewrite_en = "aya-expanse"
|
||||
|
||||
[data-science.libretranslate]
|
||||
endpoint = "http://fwdesk.lab.internal:5000/translate"
|
||||
timeout_seconds = 120
|
||||
|
||||
[data-science.classifier]
|
||||
model_path = "data/classifier.json"
|
||||
|
||||
[data-science.grok_models.models]
|
||||
rewrite_heb = "grok-4.3"
|
||||
rewrite_en = "grok-4.3"
|
||||
rewrite_ru = "grok-4.3"
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -21,4 +21,6 @@ in
|
||||
|
||||
# Hermes envs
|
||||
"secrets/hermes-env.age".publicKeys = [ ari fwdesk ];
|
||||
|
||||
"secrets/iu-project.age".publicKeys = [ ari minipc1 ];
|
||||
}
|
||||
Reference in new issue
Block a user