---
title: "Deploy RabbitMQ"
description: "RabbitMQ 4.4 message broker with management UI, persistent volume"
category: "Queues"
url: https://railway.com/deploy/rabbitmq-2
---

# Deploy RabbitMQ

RabbitMQ 4.4 message broker with management UI, persistent volume

**[Deploy RabbitMQ on Railway](https://railway.com/template/rabbitmq-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/rabbitmq-2/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Queues
- **Total deploys:** 2

## Template content

### RabbitMQ https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/rabbitmq.png

- **Source:** https://github.com/aalfath/rabbitmq-railway-template
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host RabbitMQ on Railway

RabbitMQ is an open-source message broker. Applications send messages to it over AMQP 0-9-1, and RabbitMQ routes them into queues that other services consume at their own pace. It supports durable quorum queues, streams, dead-lettering and routing patterns from simple work queues to publish/subscribe, and it ships a web management UI.

## About Hosting RabbitMQ

This template runs RabbitMQ 4.4.0 from the official `rabbitmq:4.4.0-management` image, pinned by digest and built from a public GitHub repository, so Railway can offer you tested updates. One service holds everything: the broker, the management UI on your Railway domain, and AMQP on port 5672. Data lives on a volume at `/var/lib/rabbitmq`, and the node name is fixed so queues and messages survive redeploys. An admin user with a random 32-character password is created on first start; there is no `guest` login. The memory alarm is sized to the container's memory limit, not the host's RAM.

## Common Use Cases

* Background job and task queues between a web app and its workers
* Event-driven communication between microservices (publish/subscribe, routing by topic)
* Buffering bursts of traffic, webhooks or IoT messages so consumers can process them reliably

## Dependencies for RabbitMQ Hosting

* A Railway volume for the message store and metadata (included)
* Nothing else: RabbitMQ needs no external database

### Deployment Dependencies

* [RabbitMQ documentation](https://www.rabbitmq.com/docs)
* [RabbitMQ 4.4.0 release](https://github.com/rabbitmq/rabbitmq-server/releases/tag/v4.4.0)
* [Official Docker image](https://hub.docker.com/_/rabbitmq)
* [Template repository](https://github.com/aalfath/rabbitmq-railway-template)

### Implementation Details

Services in the same Railway project connect over the private network with the reference variable:

```
AMQP_URL=${{RabbitMQ.RABBITMQ_PRIVATE_URL}}
```

Clients outside Railway can use `RABBITMQ_URL`, which goes through Railway's TCP proxy. That connection is not encrypted, so prefer the private URL, and delete the TCP proxy in the service settings if you don't need outside access.

Log in to the management UI at `https://YOUR-DOMAIN` with `RABBITMQ_DEFAULT_USER` (default `admin`) and the generated `RABBITMQ_DEFAULT_PASS` from the service's Variables tab. Both only apply on the first start; change the password later in the UI (the Admin tab, then Users). Upgrades arrive as "update available" notices from the template repository; read its CHANGELOG before applying one.

## Why Deploy RabbitMQ on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying RabbitMQ on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Celery | Web, Worker and Scheduler as Three Services](https://railway.com/deploy/celery-or-web-work-1) — Web, worker and scheduler wired up: Celery on Redis, outcomes in Postgres.
- [Redpanda](https://railway.com/deploy/redpanda-1) — Redpanda 26.2: Kafka-compatible streaming, single node, with Kafbat UI.
- [smoothmq](https://railway.com/deploy/AJv-64) — A drop-in replacement for AWS SQS

Open this page in a browser: https://railway.com/deploy/rabbitmq-2
