# Local development — Postgres only
# Usage: docker compose up -d
# Then: npm run db:push && npm run db:seed && npm run dev

services:
  postgres:
    image: postgres:16-alpine
    container_name: archi-postgres
    restart: unless-stopped
    environment:
      POSTGRES_USER: archi
      POSTGRES_PASSWORD: archi
      POSTGRES_DB: archi
    ports:
      - "5432:5432"
    volumes:
      - archi_pg_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U archi -d archi"]
      interval: 5s
      timeout: 5s
      retries: 10

volumes:
  archi_pg_data:
