Skip to content

Dockerized RabbitMQ messaging system producer/consumer example

License

Notifications You must be signed in to change notification settings

joshswimlane/rabbitmqpika

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized RabbitMQ messaging system producer/consumer example

Demonstrates example RabbitMQ simple producer/consumer running in Docker container

Prerequisites

Installation

Set the environment variable RABBIT_HOST_IP. This should be the host IP you get using e.g. ifconfig.

$ export RABBIT_HOST_IP=<your host IP - not localhost or 127.0.0.1>  

Start container

$ docker-compose up  

If your environment variable is set incorrectly, you'll get something like

$ pika.exceptions.AMQPConnectionError: Connection to 127.0.0.1:5672 failed: [Errno 111] Connection refused

Start the management interface to see the message traffic

http://${RABBIT_HOST_IP}:15672 or if running locally http://127.0.0.1:15672/

About

Dockerized RabbitMQ messaging system producer/consumer example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.4%
  • Dockerfile 2.6%