Fix ag-ui docker config
This commit is contained in:
parent
f603d2373a
commit
54fa3de2da
3 changed files with 14 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
# Path to the LanceDB database
|
||||
# For Docker: /app/data/haiku_rag.lancedb
|
||||
# For local development: Use absolute path to existing database
|
||||
DB_PATH=~/SOME_FOLDER/haiku.rag.lancedb
|
||||
# Path to the LanceDB database on your HOST machine
|
||||
# This will be mounted into the Docker container at /app/data/haiku.rag.lancedb
|
||||
# Must be an absolute path to an existing database created with haiku-rag
|
||||
DB_PATH=/absolute/path/to/your/haiku.rag.lancedb
|
||||
|
||||
# API keys (set as needed for your QA provider)
|
||||
# OPENAI_API_KEY=your-key-here
|
||||
|
|
|
|||
|
|
@ -4,12 +4,17 @@ WORKDIR /app
|
|||
|
||||
# Copy backend application files
|
||||
COPY agent.py main.py ./
|
||||
COPY pyproject.toml uv.lock ./
|
||||
COPY pyproject.toml ./
|
||||
|
||||
# Install backend dependencies into the existing haiku.rag venv
|
||||
RUN uv sync --frozen --no-dev
|
||||
# Install backend dependencies
|
||||
# Note: haiku-rag is already installed in the base image
|
||||
RUN pip install --no-cache-dir \
|
||||
starlette>=0.45.2 \
|
||||
uvicorn[standard]>=0.34.2 \
|
||||
pydantic-ai-slim[ag-ui,openai]>=1.1.0 \
|
||||
python-dotenv>=1.0.1
|
||||
|
||||
EXPOSE 8000
|
||||
|
||||
# Run with uvicorn
|
||||
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ services:
|
|||
- ./backend:/app
|
||||
- /app/.venv
|
||||
- ${DB_PATH}:/app/data/haiku.rag.lancedb
|
||||
- ./haiku.rag.yaml:/app/haiku.rag.yaml:ro # Mount config file
|
||||
- ./haiku.rag.yaml:/app/haiku.rag.yaml:ro
|
||||
networks:
|
||||
- ag-ui-network
|
||||
extra_hosts:
|
||||
|
|
|
|||
Loading…
Reference in a new issue