services:
  postgres:
    image: postgres:15.15
    environment:
      - POSTGRES_USER=developer
      - POSTGRES_PASSWORD=development_secret
      - POSTGRES_DB=programexecutor
    ports:
      - 5435:5432
  pub-sub-emulator:
    image: google/cloud-sdk:526.0.0-emulators
    command: ["gcloud", "beta", "emulators", "pubsub", "start", "--host-port=0.0.0.0:8085", "--project=some-project-id"]
    ports:
      - "8085:8085"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8085/v1/projects/test/schemas"]
      interval: 1m30s
      timeout: 10s
      retries: 3
      start_period: 40s
