chromadb persistant data

This commit is contained in:
Alexander Svan
2025-04-08 08:30:14 +02:00
parent 276b6d4e23
commit 40dbbe128f
2 changed files with 5 additions and 2 deletions

3
.gitignore vendored
View File

@@ -1,2 +1,3 @@
ollama_models
chroma_db_data
postgres_db
chroma_db

View File

@@ -9,6 +9,8 @@ services:
- POSTGRES_DB=chroma
- CHROMA_SERVER_HOST=0.0.0.0
- CHROMA_SERVER_HTTP_PORT=8000
volumes:
- ./chroma_db:/data
depends_on:
- chroma-db
@@ -20,7 +22,7 @@ services:
POSTGRES_DB: chroma
PGDATA: /var/lib/postgresql/data/pgdata
volumes:
- ./chroma_db_data:/var/lib/postgresql/data
- ./postgres_db:/var/lib/postgresql/data
ollama:
image: ollama/ollama:latest