Google PubSub Emulator Docker Image
1.4K
This is the Docker image for the Google Cloud PubSub Emulator
This command will download the image if it isn't present, and start the emulator, making it available at localhost:8085:
docker run -p 8085:8085 vovimayhem/google-pubsub-emulator
This image accepts mounting a volume for the emulator to store data. Inside the
pubsub, the emulator expects the data to be available at /data:
docker run -p 8085:8085 -v /tmp/data:/data vovimayhem/google-pubsub-emulator
You can also use it on your docker-compose.yml file. Notice the env variable
PUBSUB_EMULATOR_HOST on the app service to configure the client so it points
to the emulator:
version: "2.4"
volumes:
pubsub_data:
services:
pubsub:
image: vovimayhem/google-pubsub-emulator:latest
ports:
- ${PUBSUB_PORT:-8085}:8085
volumes:
- pubsub_data:/data
app:
# Some lines ommitted
environment:
PUBSUB_EMULATOR_HOST: pubsub:8085
Content type
Image
Digest
Size
180.6 MB
Last updated
over 7 years ago
docker pull vovimayhem/google-pubsub-emulator