docker-compose-gcp-emulator.yaml 602 B

1234567891011121314151617181920212223
  1. version: '3.9'
  2. services:
  3. gcp_emulator:
  4. container_name: gcp_emulator
  5. image: gcr.io/google.com/cloudsdktool/google-cloud-cli:435.0.1-emulators
  6. restart: always
  7. expose:
  8. - "8085"
  9. # ports:
  10. # - "8085:8085"
  11. networks:
  12. - emqx_bridge
  13. healthcheck:
  14. test: ["CMD", "curl", "-f", "http://localhost:8085"]
  15. interval: 30s
  16. timeout: 5s
  17. retries: 4
  18. command:
  19. - bash
  20. - "-c"
  21. - |
  22. gcloud beta emulators pubsub start --project=emqx-pubsub --host-port=0.0.0.0:8085 --impersonate-service-account test@emqx.iam.gserviceaccount.com