Logo

dev-resources.site

for different kinds of informations.

RabbitMQ container with Docker Compose

Published at
9/2/2024
Categories
dockercompose
rabbitmq
Author
zsevic
Categories
2 categories in total
dockercompose
open
rabbitmq
open
Author
6 person written this
zsevic
open
RabbitMQ container with Docker Compose

Docker Compose facilitates spinning up a container for the RabbitMQ broker without installing it locally.

Prerequisites

  • Docker Compose installed

Configuration

The following configuration spins up the RabbitMQ container with the management UI tool.

The connection string for the RabbitMQ broker with local virtual host is amqp://localhost:5672/local.

RabbitMQ management UI is available at the http://localhost:15672 link. Default credentials are guest as username and guest as password.

# docker-compose.yml
version: '3.8'

services:
  rabbitmq:
    image: rabbitmq:3-management
    ports:
      - 5672:5672
      - 15672:15672
    environment:
      - RABBITMQ_DEFAULT_VHOST=local
    volumes:
      - 'rabbitmq_data:/data'

volumes:
  rabbitmq_data:
Enter fullscreen mode Exit fullscreen mode

Run the following command to spin up the container.

docker-compose up
Enter fullscreen mode Exit fullscreen mode

Course

Build your SaaS in 2 weeks - Start Now

dockercompose Article's
30 articles in total
Favicon
Want to Learn Docker in Advance Way?
Favicon
deploy Jenkins using docker compose with production ready
Favicon
Docker Advance Part 2: Docker Logging
Favicon
A Simple Guide to Docker Compose & Multi-Container Applications
Favicon
Dockerize nestjs app with postgres
Favicon
Tips and Tricks for Docker Compose: Leveraging the override Feature
Favicon
Dockerize nestjs application with Postgres
Favicon
RabbitMQ container with Docker Compose
Favicon
Quick and simple Local WordPress Setup for Lazy Developers
Favicon
Bug: Docker-compose up?
Favicon
How to resolve Docker Compose Warning WARN[0000] Found orphan containers
Favicon
How to resolve Docker Compose Warning WARN[0000] Found orphan containers
Favicon
How To Set Up Docker SeleniumΒ GRID
Favicon
How to Ensure Docker Compose Uses Environment Variables from the `.env` File
Favicon
Essential Docker Commands for Developers
Favicon
[Docker] How to fix 'host not found in upstream "host.docker.internal"'.
Favicon
Como configurar imagem Docker(PHP e Nginx) para projetos Laravel com PHP 8.3
Favicon
Containerize your multi-services app with docker compose
Favicon
αžŸαž˜αŸ’αžšαžΆαž”αŸ‹αž›αž»αž”αž’αŸ’αžœαžΈαŸ—αž‘αžΆαŸ†αž„ αž’αžŸαŸ‹ αž€αŸ’αž“αž»αž„ Docker compose.
Favicon
Installation of Docker Compose:
Favicon
MongoDB containers with Docker Compose
Favicon
An Overview of Docker Compose and its Features.
Favicon
How to change docker root data directory and why would you want to do that (hint: to optimize space)
Favicon
Containerize a Web Application using docker compose
Favicon
O Docker Compose agora tem uma V2, veja como instalar
Favicon
Vue 2 vite dockerized steps
Favicon
An Advanced Guide (2) to Docker: Managing Multi-Container Applications 🐳
Favicon
How to run mongodb using docker-compose in ubuntu
Favicon
How to run postgres database using docker and docker-compose
Favicon
Easy Dockerization with Docker INIT

Featured ones: