# PostgreSQL with logical decoding, for the query-based CDC lab.
services:
  postgres:
    image: postgres:17.6
    environment:
      POSTGRES_PASSWORD: lab
    command: ["postgres", "-c", "wal_level=logical", "-c", "max_replication_slots=4"]
    ports: ["55480:5432"]
    healthcheck:
      test: ["CMD", "pg_isready", "-U", "postgres"]
      interval: 1s
      retries: 30
