services:
  postgres:
    image: postgres:16-alpine
    container_name: ptp-postgres
    environment:
      POSTGRES_DB: prompt_tracking
      POSTGRES_USER: prompt_tracking
      POSTGRES_PASSWORD: prompt_tracking
    ports:
      - "5432:5432"
    volumes:
      - pgdata:/var/lib/postgresql/data

  redis:
    image: redis:7-alpine
    container_name: ptp-redis
    ports:
      - "6379:6379"

volumes:
  pgdata:
