# Local stack (Roadmap item 5): Postgres (with pgvector, for the one-DB fallback path), # Qdrant (retrieval index, Phase 2+), and the API. # docker compose up -d postgres qdrant # infra only # docker compose up --build api # API container too services: postgres: image: pgvector/pgvector:pg16 environment: POSTGRES_USER: olrec POSTGRES_PASSWORD: olrec POSTGRES_DB: olrec ports: ["5432:5432"] volumes: ["pgdata:/var/lib/postgresql/data"] healthcheck: test: ["CMD-SHELL", "pg_isready -U olrec -d olrec"] interval: 5s timeout: 3s retries: 10 qdrant: image: qdrant/qdrant:v1.12.4 ports: ["6333:6333", "6334:6334"] volumes: ["qdrant:/qdrant/storage"] api: build: . environment: OLREC_DATABASE_URL: postgresql://olrec:olrec@postgres:5432/olrec OLREC_QDRANT_URL: http://qdrant:6333 OLREC_DATA_DIR: /app/data ports: ["8000:8000"] volumes: ["./data:/app/data"] depends_on: postgres: {condition: service_healthy} qdrant: {condition: service_started} command: ["olrec", "api", "serve"] volumes: pgdata: qdrant: