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!
-
With
docker-compose
:--- version: '3.6' services: pubsub: image: adhawk/google-pubsub-emulator ports: - 8085:8085
-
Plain
docker
command:docker run -p 8085:8085 adhawk/google-pubsub-emulator
-
Make sure to set these environment variables in your app that requires the pubsub service
export PUBSUB_EMULATOR_HOST=localhost:8085