Skip to content

Commit

Permalink
Add vector-db service to docker compose.
Browse files Browse the repository at this point in the history
  • Loading branch information
JayNakrani committed Dec 8, 2023
1 parent 3f0c8fb commit 4fef4a6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,19 @@ services:
- .env
environment:
- INFERENCE_SERVER=http://inference:11434/
- VECTOR_DB_SERVER=http://vector-db:8000
ports:
- 28669:28669
command: sh -c "cd /app && sh tools/db-migrate-and-seed.sh ${DATABASE_FILE} && node server.js"
depends_on:
- inference
- vector-db

vector-db:
image: chromadb/chroma:latest
volumes:
# Default configuration for persist_directory is "/chroma/chroma/"
- ./vector-db:/chroma/chroma/

inference:
image: ollama/ollama:latest
Expand Down

0 comments on commit 4fef4a6

Please sign in to comment.