- A1: fire the hard filter (Apify is precise); embedding vibe-ranker (embed.py) blends with the floor-free white-box (rank.py) to sift ~90 -> top 18 - A2: Opus curator (curate.py) reads the 18 -> honest <=count + Gemini-voiced report cards; graceful fallback to the white-box + templated cards - LLM via opencode.ai/zen gateway (llm.py): Opus chat + direct-OpenAI embeddings - Run LLM work off the event loop (asyncio.to_thread) so the Redis response publishes - C1: dedicated Postgres (app/db/) persists the per-user feed; get_scout_feed replays it so matches survive navigation/refresh - match contract + report-card fields (schema.py); skills.py; tests/
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
# Local dev for matchmaking-v2 in isolation (prod wiring lives in the growqr monorepo compose).
|
|
services:
|
|
matchmaking-v2:
|
|
build: .
|
|
container_name: matchmaking-v2
|
|
ports:
|
|
- "8006:8000"
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
# inside the compose network the DB host is `postgres` (overrides the host-dev .env value)
|
|
DATABASE_URL: postgresql+asyncpg://matchmaking:matchmaking@postgres:5432/matchmaking
|
|
depends_on:
|
|
postgres:
|
|
condition: service_healthy
|
|
restart: unless-stopped
|
|
|
|
# Durable per-user feed store (fixes "matches disappear on navigation"). Dedicated, not shared.
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
container_name: matchmaking-postgres
|
|
environment:
|
|
POSTGRES_USER: matchmaking
|
|
POSTGRES_PASSWORD: matchmaking
|
|
POSTGRES_DB: matchmaking
|
|
ports:
|
|
- "5446:5432" # host-dev uvicorn connects via localhost:5446
|
|
volumes:
|
|
- mmpgdata:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U matchmaking"]
|
|
interval: 5s
|
|
timeout: 3s
|
|
retries: 10
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
mmpgdata:
|