services:
  companion:
    extends:
      file: docker-compose.yml
      service: companion
    environment:
      LOG_LEVEL: INFO

  operator-tooling:
    extends:
      file: docker-compose.yml
      service: operator-tooling

  mock-sat:
    extends:
      file: docker-compose.yml
      service: mock-sat

  db:
    extends:
      file: docker-compose.yml
      service: db

  e2e-runner:
    build:
      context: .
      dockerfile: tests/e2e/Dockerfile
    image: gps-denied-onboard/e2e-runner:dev
    depends_on:
      companion:
        condition: service_healthy
      mock-sat:
        condition: service_healthy
      db:
        condition: service_healthy
    environment:
      GPS_DENIED_TIER: "1"
      DB_URL: postgresql://gps_denied:dev@db:5432/gps_denied
      SATELLITE_PROVIDER_URL: http://mock-sat:5100
      COMPANION_URL: http://companion:8080
    volumes:
      - ./tests:/opt/tests:ro

volumes:
  db-data: {}
  fdr-data: {}
  tile-data: {}
