Public | Automated Build

Last pushed: 3 years ago
Short Description
35MB RabbitMQ Docker image running on Alpine Linux
Full Description

#Alpine Linux RabbitMQ Docker image
Many other RabbitMQ Docker images are huge. Instead of using the bloated Ubuntu or Fedora images as a base, this image uses the 5MB Alpine Linux base image. Alpine lets us run RabbitMQ 3.5.3 on Erlang 18.0.2 in only 35MB!


The wrapper script starts RabbitMQ (with management plugin enabled), tails the log, and configures listeners on the standard ports:

  • 5671/tcp: Listening port when SSL is enabled
  • 5672/tcp: Non-SSL default listening port
  • 15672/tcp: GUI listening port (never uses SSL)

RabbitMQ's data is persisted to a volume at /var/lib/rabbitmq.

To enable SSL set the $SSL_CERT_FILE, $SSL_KEY_FILE, and $SSL_CA_FILE environment variables.


docker run -it \
  --name rabbitmq \
  -p 5672:5672 \
  -p 15672:15672 \
  -e SSL_CERT_FILE=/ssl/cert/cert.pem \
  -e SSL_KEY_FILE=/ssl/cert/key.pem \
  -e SSL_CA_FILE=/ssl/CA/cacert.pem \


To set a custom config, ditch the wrapper script and call rabbitmq-server directly. Place the custom config in /srv/rabbitmq_server-3.5.3/etc/rabbitmq/.

Fair Warning!

Alpine's Erlang packages are in its testing repo, if that bothers you then don't use this image!

Docker Pull Command
Source Repository