This enables a RabbitMQ service container that can be used by other containers on the same network and the host machine itself.
ddev get b13/ddev-rabbitmq && ddev restart
From within the container, the RabbitMQ container is reached at hostname: rabbitmq
on port 5672, so
the server URL will be amqp://rabbitmq:5672
.
For more details check the connection section below.
The config.rabbitmq.yaml describes vhosts, queues, users, and plugins.
The configuration can be applied with the following command:
ddev rabbitmq apply
Remove rabbitmq configuration but keep default user (rabbitmq
) and vhost (/
):
ddev rabbitmq wipe
Everything possible in Management UI can be done using rabbitmqadmin
.
User and password are set
ddev rabbitmqadmin --help
rabbitmqctl
is used to manage the cluster and nodes
ddev rabbitmqctl --help
ℹ️rabbitmqadmin
and rabbitmqctl
share a some functions. Both are needed for full configuration.
RabbitMQ is accessible from the host machine itself as well as between the containers on the same network, and comes with a nice management UI for ease of use.
The management UI can be accessed through https://<DDEV_SITENAME>.ddev.site:15673
on the host machine.
Username: "rabbitmq", password: "rabbitmq". This is also shown in ddev describe
.
For more information about the HTTP API see the official documentation
You can access the RabbitMQ service through its AMQP protocol inside any DDEV container via amqp://rabbitmq:5672
Originally Contributed by @Graloth in ddev-contrib
Maintained by @b13