services:
  postgres-test:
    image: postgres:18.2-alpine3.23
    environment:
      POSTGRES_USER: oxicloud_test
      POSTGRES_PASSWORD: oxicloud_test
      POSTGRES_DB: oxicloud_test
    ports:
      - "5433:5432"
    tmpfs:
      - /var/lib/postgresql   # in-memory: always blank on start (pg18+ uses /var/lib/postgresql/18/data)
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U oxicloud_test"]
      interval: 2s
      timeout: 5s
      retries: 10
