REMEDI docker-rmq
remedi-docker-rmq
Building 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