From clicking through the redesigned UI: - scoring a case without a model registry painted a red failure across a case that had in fact analysed fine. It is now a quiet note saying the model term contributes 0, because scoring is an optional fourth of the rank, not the analysis. - the MLflow default moves to port 5001. On macOS, AirPlay Receiver owns 5000, which is why the registry answered "403" rather than refusing the connection; docker-compose publishes 5001 to match. - a funnel step that kept nothing drew a visible bar. Zero now draws zero. - "1 candidates". - the funnel's fixed grid columns forced a horizontal scrollbar on the report. The report also lists the top undecided candidates now: the first thing anyone opens has no decisions in it, and "Shortlisted (0)" alone said nothing about what the tool found. Tests: api 77, web 32; ruff, mypy, svelte-check clean.
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
services:
|
|
db:
|
|
image: postgres:16-alpine
|
|
environment:
|
|
POSTGRES_USER: rarelens
|
|
POSTGRES_PASSWORD: rarelens
|
|
POSTGRES_DB: rarelens
|
|
ports: ["5432:5432"]
|
|
volumes: [pgdata:/var/lib/postgresql/data]
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready -U rarelens"]
|
|
interval: 5s
|
|
retries: 10
|
|
|
|
api:
|
|
build: ./api
|
|
environment:
|
|
DATABASE_URL: postgresql+asyncpg://rarelens:rarelens@db:5432/rarelens
|
|
MLFLOW_TRACKING_URI: http://mlflow:5000
|
|
ports: ["8000:8000"]
|
|
depends_on:
|
|
db: { condition: service_healthy }
|
|
volumes: ["./api:/app"]
|
|
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
|
|
|
|
web:
|
|
build:
|
|
context: ./web
|
|
target: build
|
|
environment:
|
|
PUBLIC_API_URL: http://localhost:8000/api
|
|
ports: ["5173:5173"]
|
|
depends_on: [api]
|
|
volumes: ["./web:/app", "/app/node_modules"]
|
|
command: npm run dev -- --host
|
|
|
|
mlflow:
|
|
image: ghcr.io/mlflow/mlflow:v3.16.0
|
|
# --artifacts-destination makes the server proxy artifacts over HTTP; a bare local
|
|
# --default-artifact-root would hand clients a /mlruns path only this container can see.
|
|
command: >
|
|
mlflow server --host 0.0.0.0
|
|
--backend-store-uri sqlite:////mlruns/mlflow.db
|
|
--artifacts-destination /mlruns
|
|
# 5001 on the host: macOS AirPlay Receiver owns 5000 and answers 403.
|
|
ports: ["5001:5000"]
|
|
volumes: [mlruns:/mlruns]
|
|
|
|
volumes:
|
|
pgdata:
|
|
mlruns:
|