Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 715 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 715 Bytes

Google Cloud Pub/Sub for Docker

This repo contains a ridiculously small Docker image for the Cloud Pub/Sub Emulator for usage in development.

Only use this image in development, do not use this in production!

Usage

  1. With docker-compose:

    ---
    version: '3.6'
    
    services:
      pubsub:
        image: adhawk/google-pubsub-emulator
        ports:
          - 8085:8085
  2. Plain docker command:

    docker run -p 8085:8085 adhawk/google-pubsub-emulator
  3. Make sure to set these environment variables in your app that requires the pubsub service

    export PUBSUB_EMULATOR_HOST=localhost:8085