Update librechat rag to use locally-built and local DB

I have to do the local build because I no longer have access to the one
at docker.io.
This commit is contained in:
Eli Ribble 2025-09-09 21:34:09 +00:00
parent c535915ae0
commit bb4d7e95a8

View file

@ -23,6 +23,14 @@ in
services.mongodb = {
enable = true;
};
services.postgresql = {
ensureDatabases = [ "rag_api" ];
ensureUsers = [{
ensureClauses.login = true;
ensureDBOwnership = true;
name = "rag_api";
}];
};
sops.secrets.librechat-env = {
format = "dotenv";
group = "librechat";
@ -114,7 +122,7 @@ in
environmentFiles = [
"/var/run/secrets/rag-api-env"
];
image = "docker.io/library/rag_api:latest";
image = "localhost/rag_api:latest";
ports = [ "127.0.0.1:10051:8000" ];
volumes = [
"/opt/rag-api:/app/uploads"