olivas/docker-compose.yml
DJP 2425cd2677 Fix Docker and install files for current codebase
- Fix backend Dockerfile: install deps before copying source for
  proper layer caching (non-editable install)
- Add ai_insights, ai_score, ai_score_reason, ai_cost_usd columns
  to initial Alembic migration so fresh Docker deploys have full schema
- Add ANTHROPIC_API_KEY to docker-compose.yml, docker-compose.dev.yml,
  and .env.example
- Remove accidental backend/=0.40 pip artifact file

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 21:54:41 -05:00

43 lines
905 B
YAML

services:
postgres:
image: postgres:16-alpine
ports:
- "5453:5432"
environment:
POSTGRES_USER: olivas
POSTGRES_PASSWORD: olivas
POSTGRES_DB: olivas
volumes:
- pgdata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U olivas"]
interval: 5s
timeout: 5s
retries: 5
backend:
build: ./backend
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql+asyncpg://olivas:olivas@postgres:5432/olivas
UPLOAD_DIR: /app/data/uploads
DEVICE: auto
CORS_ORIGINS: http://localhost:1577
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
volumes:
- uploads:/app/data/uploads
depends_on:
postgres:
condition: service_healthy
frontend:
build: ./frontend
ports:
- "1577:1577"
depends_on:
- backend
volumes:
pgdata:
uploads: