From 40dbbe128f116638c2fb5c9986c71b6d1b68d2c1 Mon Sep 17 00:00:00 2001 From: Alexander Svan Date: Tue, 8 Apr 2025 08:30:14 +0200 Subject: [PATCH] chromadb persistant data --- .gitignore | 3 ++- docker-compose.yml | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ef5db3b..edb9577 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ ollama_models -chroma_db_data \ No newline at end of file +postgres_db +chroma_db \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1ee741f..4996816 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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