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 # Create data directory for the database
RUN mkdir -p /data RUN mkdir -p /data
# Default database path # Set default data directory
ENV HAIKU_RAG_DB_PATH=/data/haiku.rag.lancedb ENV DEFAULT_DATA_DIR=/data
# Expose ports for MCP and A2A # Expose ports for MCP and A2A
EXPOSE 8000 8001 EXPOSE 8000 8001

View file

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

View file

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

View file

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