RabbitMQ is a widely used open-source message broker that implements the Advanced Message Queuing Protocol (AMQP)
RabbitMQ is a widely used open-source message broker that implements the Advanced Message Queuing Protocol (AMQP). For more details, see their homepage.
After deploying the RabbitMQ service, Zeabur automatically injects the relevant environment variables into other services.
${RABBITMQ_HOST}
: The hostname of the RabbitMQ service.${RABBITMQ_PORT}
: The port of the RabbitMQ service.${RABBITMQ_DEFAULT_USER}
: The default username for the RabbitMQ service.${RABBITMQ_DEFAULT_PASS}
: The default password for the RabbitMQ service.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 you have added.
You can also use the DSN of the RabbitMQ service (the connection string) with the variable ${RABBITMQ_URI}
.
The RabbitMQ service provides an online management interface, allowing you to manage it through your browser.
You can access the RabbitMQ service’s online management interface by binding a domain and visiting https://<your-domain>
.
By default, the following plugins are enabled:
rabbitmq_management
: This management plugin provides an HTTP-based API for managing and monitoring your RabbitMQ server, along with a browser-based UI and a command-line tool, rabbitmqadmin.rabbitmq_mqtt
: This plugin adds support for the MQTT protocol to RabbitMQ.rabbitmq_stomp
: This plugin adds support for the STOMP protocol to RabbitMQ.We have enabled the ports for these plugins, and you can refer to the "Networking" section for access details.
See "Settings" > "Config Editor" for the configurable files of the RabbitMQ service.