Skip to content

Latest commit

 

History

History
29 lines (14 loc) · 876 Bytes

README.md

File metadata and controls

29 lines (14 loc) · 876 Bytes

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/