services:
  postgres:
    image: postgres:16-alpine
    container_name: rook-preview-postgres
    restart: unless-stopped
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: ${POSTGRES_DB}
    ports:
      - "5432:5432"
    volumes:
      - rook_postgres_data:/var/lib/postgresql/data

volumes:
  rook_postgres_data: