# Development docker-compose — runs PostgreSQL and Redis locally
# The Next.js app runs via `npm run dev` outside Docker for fast HMR
services:
  postgres:
    image: postgres:16
    ports:
      - "5432:5432"
    environment:
      POSTGRES_DB: screenburn
      POSTGRES_USER: screenburn
      POSTGRES_PASSWORD: screenburn_dev
    volumes:
      - pgdata:/var/lib/postgresql/data
    restart: unless-stopped

  redis:
    image: redis:7
    ports:
      - "6379:6379"
    restart: unless-stopped

volumes:
  pgdata:
