Skip to content

scotto/docker-rmq

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
November 12, 2019 08:39
November 12, 2019 08:39
November 12, 2019 08:39
November 12, 2019 08:39

REMEDI docker-rmq

Building remedi-docker-rmq

This will build a development (local) RMQ image that doesn't need any configuration volume mounted in for it to work. It simply copies in the basic virtual host and exchange configuration with the local development user and passwords set.

docker build -t remedi-docker-rmq -f Dockerfile .

You can then use this image in your docker-compose setup:

rabbitmq:
  image: remedi-docker-rmq:latest
  container_name: rabbitmq
  ports:
    - "15672:15672"
    - "5672:5672"

It's also possible to just use the base RabbitMQ image and volume mount the configuration directory with the plugins you want enabled set as well:

rabbitmq:
  image: "rabbitmq:3.7.21-management-alpine"
  container_name: rabbitmq
  ports:
    - "15672:15672"
    - "5672:5672"
  volumes:         
    - ./rabbitmq/:/etc/rabbitmq/

In your own projects, edit the contents of ./rabbitmq accordingly.

definitions.json

To generate the definitions.json file quickly, fire up a bare RMQ instance and use the management console running at port 15672 to set everything up. If you run rabbitmq without these configurations, you can fire it up with the ENV vars to set an admin user / password. You can then export your RMQ definitions and use them in your own project.

rabbitmq:
  image: "rabbitmq:3.7.21-management-alpine"
  container_name: rabbitmq
  ports:
    - "15672:15672"
    - "5672:5672"
  environment:
    - RABBITMQ_DEFAULT_USER = user
    - RABBITMQ_DEFAULT_PASS = user

Defaults

Admin user/password for the mgmt console: user/user. Rabbitmq management console is listening on port 15672.

Basic user for development: remedi:remedi. Vhosts: remedi.apps, remedi.logs

RMQ Configuration Options

https://www.rabbitmq.com/configure.html#config-file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published