version: "3.4"

services:
  todomvc:
    build:
      context: ../../
      dockerfile: ./examples/todomvc/Dockerfile
    depends_on:
      - mongo
      - gpubsub
      - tracing
    ports:
      - "8080:8080"
    environment:
      MONGODB_HOST: "mongodb:27017"
      PUBSUB_EMULATOR_HOST: "gpubsub:8793"
      TRACING_URL: "tracing"

  mongodb:
    image: mongo:4.4
    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"

  tracing:
    image: docker.io/jaegertracing/all-in-one:1.16
    ports:
      - "9411:9411"
      - "16686:16686"
      - "5778:5778"
    environment:
      # Enable Zipkin collector compatability.
      COLLECTOR_ZIPKIN_HTTP_PORT: 9411

version: "3.4"

services:
  todomvc:
    build:
      context: ../../
      dockerfile: ./examples/todomvc/Dockerfile
    depends_on:
      - mongodb
      - gpubsub
      - tracing
    ports:
      - "8080:8080"
    environment:
      MONGODB_HOST: "mongodb:27017"
      PUBSUB_EMULATOR_HOST: "gpubsub:8793"
      TRACING_URL: "tracing"

  mongodb:
    image: mongo:4.4
    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"

  tracing:
    image: docker.io/jaegertracing/all-in-one:1.16
    ports:
      - "9411:9411"
      - "16686:16686"
      - "5778:5778"
    environment:
      # Enable Zipkin collector compatability.
      COLLECTOR_ZIPKIN_HTTP_PORT: 9411

Fix incorrect mongodb container name in TodoMVC
Fix incorrect mongodb container name in TodoMVC
