Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Željko Šević
Željko Šević

Posted on • Originally published atsevic.dev on

     

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 withlocal virtual host isamqp://localhost:5672/local.

RabbitMQ management UI is available at thehttp://localhost:15672 link. Default credentials areguest as username andguest as password.

# docker-compose.ymlversion:'3.8'services:rabbitmq:image:rabbitmq:3-managementports:-5672:5672-15672:15672environment:-RABBITMQ_DEFAULT_VHOST=localvolumes:-'rabbitmq_data:/data'volumes:rabbitmq_data:
Enter fullscreen modeExit fullscreen mode

Run the following command to spin up the container.

docker-compose up
Enter fullscreen modeExit fullscreen mode

Course

Build your SaaS in 2 weeks -Start Now

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
sirzarganwar profile image
Martin Jirasek
uhm, bio-logist?
  • Joined

What about two/more applications (2x docker-compose) each with rabbit instance with own ip:port?

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Node.js developer, creating tech content at https://sevic.dev
  • Location
    Belgrade, Serbia
  • Joined

More fromŽeljko Šević

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp