RabbitMQ

Manage message queues with RabbitMQ and its web interface.

  • queue
  • messaging

Guide: Connect to a database from outside

Run it

briq run rabbitmq

Fields

NameTypeOptionsDefault
imagestring—"rabbitmq:4-management-alpine"
envrecord{ key: string | { secret, value?, literal?, scope?, hosts?, locations? } }{}
cmdstring | string[]——
sizeenumpico, micro, nano, small, medium, large, xlarge"small"
volumeobject{ gb? }{"gb":1}
filesrecord{ key: string | { base64 } }—
egressobject{ hosts }—

Outputs

Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.

AMQP_URL
amqp://app:<RABBITMQ_PASSWORD>@rabbitmq.<stack>.internal:5672
RABBITMQ_MANAGEMENT
http://rabbitmq.<stack>.internal:15672
RABBITMQ_USER
app
RABBITMQ_PASSWORD
<RABBITMQ_PASSWORD>

What it runs

BriqImagePortsSizeVolume
rabbitmqrabbitmq:4-management-alpine5672, 15672small1 GB at /var/lib/rabbitmq

When to use it

  • Your services speak AMQP (Celery, MassTransit, amqplib, Spring AMQP) and need real acks, prefetch and dead-lettering.
  • You want the management UI or HTTP API to inspect queues during a test.

Tips

  • Boot takes 30 to 60 seconds on small; briq_run waits for it.
  • Declare exchanges and queues from code, so tests see what production sees.
  • Inspect queues: briq_exec with ["rabbitmqctl", "list_queues", "name", "messages"].
  • Workers outside briq: briq_expose port 5672 with protocol: "amqp" gives an amqps:// URL. See Connect to a database from outside.
  • Management UI for a human: briq_run({ recipe: "rabbitmq", expose: "private" }).
  • Long queues: messages that outgrow memory go to the volume, which starts small; set volume: { gb } for more. Set it when the briq is created, and it counts toward your plan's disk.

On this page

Free to try

Try briq, on us.

Every new account starts with €10 of credits. No card.

Start building

How can we help?

Message to the briq team