How to installation RabbitMQ with docker compose? for using docker, you need to install docker desktop in your local computer See installation. Next successfully install docker, please create file docker compose with name docker-compose.yaml
update it with following content:
version: '3.9'
services:
rabbit:
image: "rabbitmq:3.8-management" # name of image source (https://hub.docker.com/_/rabbitmq)
container_name: rabbitMQ # name of container
environment:
RABBITMQ_DEFAULT_USER: "rabbitmq"
RABBITMQ_DEFAULT_PASS: "rabbitmq"
ports:
- "15672:15672"
- "5672:5672"
networks:
- my_network
networks:
my_network:
driver: bridge
next steep running docker compose, please use following command:
docker-compose up -d
check your docker container status in docker desktop:
Check And Running RabbitMQ
Open docker desktop, check container rabbitMQ, and run rabbitMQ. Open RabbitMQ manager in browser, login with username and password you created.
Congratulation, rabbitMQ is installed and ready to use. Check documentation here.