What is RabbitMQ?
RabbitMQ remains the workhorse message broker: AMQP 0-9-1, mature client libraries in every language, and (since 4.x) quorum queues as the default path to real high availability. This template runs a 3-node cluster that forms itself on first boot via classic-config peer discovery - no manual join commands.
Each node keeps its state on its own persistent volume. The first node serves the management UI publicly; the other two stay private. Declare your queues as quorum queues and any single node can fail without losing messages or availability.
Apps in the same project connect over AMQP at amqp://rmq-1:5672 (any node works). At 1 GiB per node, the whole HA cluster is light enough to fit a 4 GiB plan with room to spare.
What you get
- RabbitMQ 4.x with quorum queues - replicated, Raft-backed HA queues
- Automatic cluster formation on first boot (rabbit@rmq-1/2/3)
- Management UI on the public entrypoint, nodes private
- Per-node persistent volumes for mnesia state
- Standard AMQP 0-9-1 - every language has a mature client
- Identical local run with plain docker compose up
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
rmq-1 | cluster node + management UI | yes (HTTP) |
rmq-2, rmq-3 | cluster nodes | no |
Sizing and billing
1 GiB per node handles substantial message throughput. Disk is small (2 GB per node) because RabbitMQ is not a long-retention store - scale volumes up if you use lazy/long queues.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 5.86 GiB of volumes cost $0.15 per GiB a month ($0.88/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| CloudAMQP | Big Bunny (3-node HA) | $297/mo | cheapest dedicated 3-node HA cluster (~1k msg/s sustained, multi-AZ) |
| CloudAMQP | Sassy Squirrel (1 node) | $50/mo | cheapest dedicated instance - single node, no HA |
Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
How much does self-hosting RabbitMQ cost compared to CloudAMQP?
This 3-node HA cluster fits a 4 GiB plan. CloudAMQP prices dedicated clusters by size and node count; shared plans are cheaper but throttled and multi-tenant.
Are quorum queues enabled?
The cluster is quorum-queue ready - declare queues with x-queue-type: quorum (or set a queue-type policy) and they replicate across all three nodes with Raft. Classic queues still work for non-critical traffic.
What happens if a RabbitMQ node dies?
For quorum queues, the remaining two nodes keep a majority and the queue stays available - producers and consumers reconnect to a living node and continue. The failed node rejoins the cluster automatically when it comes back.
How do applications connect?
From apps in the same Lyngbak project: amqp://user:pass@rmq-1:5672 (any node accepts connections). For resilience, configure your client with all three hosts. AMQP is never exposed publicly - only the management UI gets a domain.