HAIKU_RAG_DB and DB_PATH are gone: a capability covers what the configuration places or the db_path it is given, and the app backend and the AG-UI example load their configuration as the CLI does. The compose files point HAIKU_RAG_CONFIG_PATH at the mounted haiku.rag.yaml, which places the database at /data where DB_VOLUME is mounted; the backend refuses a configured set since it serves one database. The chat scopes a selection by source only over a set and names databases on filter rows only across several. Docstrings, docs and test fixtures stop describing an unnamed database; every database a search, listing or citation reports carries a name.
31 lines
929 B
YAML
31 lines
929 B
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ..
|
|
dockerfile: app/backend/Dockerfile
|
|
# No authentication; bound to loopback. The frontend reaches it over the compose network.
|
|
ports:
|
|
- "127.0.0.1:8001:8000"
|
|
environment:
|
|
- HAIKU_RAG_CONFIG_PATH=/app/haiku.rag.yaml
|
|
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
|
|
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
|
|
- OLLAMA_BASE_URL=${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
|
|
- LOGFIRE_TOKEN=${LOGFIRE_TOKEN:-}
|
|
volumes:
|
|
# haiku.rag.yaml places the database at /data.
|
|
- ${DB_VOLUME:-./data/haiku.rag.lancedb}:/data
|
|
- ./haiku.rag.yaml:/app/haiku.rag.yaml:ro
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
|
|
frontend:
|
|
build:
|
|
context: frontend
|
|
dockerfile: Dockerfile
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- BACKEND_URL=http://backend:8000
|
|
depends_on:
|
|
- backend
|