# Local PostgreSQL for prototype / dev. Start: docker compose up -d
services:
  postgres:
    image: postgres:16-alpine
    container_name: neon-sprawl-postgres
    environment:
      POSTGRES_USER: neon_sprawl
      POSTGRES_PASSWORD: neon_sprawl_dev
      POSTGRES_DB: neon_sprawl
    ports:
      - "5432:5432"
    volumes:
      - neon_sprawl_pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U neon_sprawl -d neon_sprawl"]
      interval: 5s
      timeout: 5s
      retries: 5

volumes:
  neon_sprawl_pgdata:
