Fix default db path inside docker container, always point to /data

This commit is contained in:
Yiorgis Gozadinos 2025-10-15 13:04:20 +03:00
parent 48dbf5ff59
commit aa9b5f7b0c
No known key found for this signature in database
4 changed files with 9 additions and 6 deletions

View file

@ -24,8 +24,8 @@ RUN uv pip install --system -e ".[voyageai,mxbai,a2a]"
# Create data directory for the database
RUN mkdir -p /data
# Default database path
ENV HAIKU_RAG_DB_PATH=/data/haiku.rag.lancedb
# Set default data directory
ENV DEFAULT_DATA_DIR=/data
# Expose ports for MCP and A2A
EXPOSE 8000 8001

View file

@ -1,5 +1,5 @@
# Database
HAIKU_RAG_DB_PATH=/data/haiku.rag.lancedb
# Database directory
DEFAULT_DATA_DIR=/data
# File monitoring
MONITOR_DIRECTORIES=/docs

View file

@ -15,6 +15,9 @@ Place documents in `docs/` for automatic indexing.
## Usage
```bash
# List documents
docker compose exec haiku-rag haiku-rag list
# Search
docker compose exec haiku-rag haiku-rag search "your query"

View file

@ -11,8 +11,8 @@ services:
- ./data:/data # Persist database
- ./docs:/docs # Mount documents directory for monitoring
environment:
# Database
- HAIKU_RAG_DB_PATH=/data/haiku.rag.lancedb
# Database directory
- DEFAULT_DATA_DIR=/data
# File monitoring
- MONITOR_DIRECTORIES=/docs