Hello everyone!

We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.

Use example below to setup RabbitMQ docker container. You can then access to GUI from your browser via http://{network-gateway-ip or container-ip}:15672 with rabbitmq:rabbitmq.


Service


version: '3'

services:

rabbitmq:
image: rabbitmq:3.7.5-management
hostname: app-rabbitmq
ports:
- 5672:5672
- 15672:15672
volumes:
- ./data/rabbitmq:/var/lib/rabbitmq/mnesia/rabbit@app-rabbitmq:cached
environment:
RABBITMQ_ERLANG_COOKIE: 6085e2412b6fa88647466c6a81c0cea0
RABBITMQ_DEFAULT_USER: rabbitmq
RABBITMQ_DEFAULT_PASS: rabbitmq
RABBITMQ_DEFAULT_VHOST: /

If you get permissions problems on volumes, you might need to add user: rabbitmq service above.