Deploy RabbitMQ Service

Zeabur provides RabbitMQ service, allowing you to deploy RabbitMQ message queue on Zeabur with just one click.

ℹ️

Currently, the version of RabbitMQ service is 3-management.

Deploy RabbitMQ Service

In your project, click on New Service, then click on Prebuilt button. In the pop-up search bar, search for RabbitMQ.

deploy

After clicking on deploy, Zeabur will automatically deploy the RabbitMQ service for you.

Environment Variables

After deploying the RabbitMQ service, Zeabur will automatically inject the relevant environment variables into other services.

  • RABBITMQ_HOST
  • RABBITMQ_PORT
  • RABBITMQ_DEFAULT_USER
  • RABBITMQ_DEFAULT_PASS

Sometimes, instead of using the above environment variables, you can add your own DATABASE_URL variable to simplify the URI declaration. For example:

amqp://<RABBITMQ_DEFAULT_USER>:<RABBITMQ_DEFAULT_PASS>@<RABBITMQ_HOST>:<RABBITMQ_PORT>/<DATABASE_NAME>

Here, <DATABASE_NAME> is the name of the Vhost that you have added.

Online Management Interface

The RabbitMQ service provides an online management interface, allowing you to manage the RabbitMQ service in the browser.

You can access the RabbitMQ service's online management interface by visiting http://<RABBITMQ_HOST>:15672.

DSN settings

You can use the DSN of the RabbitMQ service (that is, the connection string of the RabbitMQ service) with the variable ${RABBITMQ_URI}.