# Dedicated Garuda event-log Postgres (Stage-3a lift target home).
# Separate from tag-mgmt's DB (5432) and the running worker stack (5433-5435) — port 5440.
services:
  garuda-events-db:
    image: postgres:16-alpine
    container_name: garuda_events_db
    environment:
      POSTGRES_DB: garuda_events
      POSTGRES_USER: garuda
      POSTGRES_PASSWORD: garuda_dev_password
    ports:
      - "5440:5432"
    volumes:
      - garuda_events_pgdata:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U garuda -d garuda_events"]
      interval: 3s
      timeout: 3s
      retries: 20

volumes:
  garuda_events_pgdata:
