version: "3.4"

services:
  golang:
    image: golang:1.14
    depends_on:
      - mongo
      - gpubsub
    environment:
      MONGO_HOST: "mongo:27017"
      PUBSUB_EMULATOR_HOST: "gpubsub:8793"
    volumes:
      - .:/eventhorizon
    working_dir: /eventhorizon

  mongo:
    image: mongo:4.2
    ports:
      - "27017:27017"

  gpubsub:
    image: google/cloud-sdk:313.0.1
    ports:
      - "8793:8793"
    entrypoint:
      - gcloud
      - beta
      - emulators
      - pubsub
      - start
      - "--host-port=0.0.0.0:8793"

version: "3.4"

services:
  golang:
    image: golang:1.15
    depends_on:
      - mongo
      - gpubsub
    environment:
      MONGO_HOST: "mongo:27017"
      PUBSUB_EMULATOR_HOST: "gpubsub:8793"
    volumes:
      - .:/eventhorizon
    working_dir: /eventhorizon

  mongo:
    image: mongo:4.2
    ports:
      - "27017:27017"

  gpubsub:
    image: google/cloud-sdk:318.0.0
    ports:
      - "8793:8793"
    entrypoint:
      - gcloud
      - beta
      - emulators
      - pubsub
      - start
      - "--host-port=0.0.0.0:8793"

Use version 318.0.0 of GCP image
Use version 318.0.0 of GCP image
