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:
parent
c535915ae0
commit
bb4d7e95a8
1 changed files with 9 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue