agentic-rag-policy-assistant/docker-compose.yml
Daniel Plank d2a6800836 Containerize with Docker Compose
Fix numpy pin for Python 3.11: the originally pinned numpy==2.5.4 requires
Python >=3.12, which is incompatible with the python:3.11-slim base image.

Refs #9
2026-11-07 16:26:16 +01:00

27 lines
550 B
YAML

services:
ollama:
image: ollama/ollama:latest
container_name: policy-assistant-ollama
ports:
- "11434:11434"
volumes:
- ollama_models:/root/.ollama
restart: unless-stopped
app:
build: .
container_name: policy-assistant-app
depends_on:
- ollama
environment:
OLLAMA_MODEL: ${OLLAMA_MODEL:-llama3.2:3b}
OLLAMA_BASE_URL: http://ollama:11434
ports:
- "8501:8501"
volumes:
- app_data:/app/app/data
restart: unless-stopped
volumes:
ollama_models:
app_data: