Skip to content

bashell-com/alpine-rmq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RabbitMQ on Alpine Linux Docker Image

This image provides RabbitMQ based on Alpine Linux latest stable version. All files are adapted from the original image at gonkulatorlabs/rabbitmq. Whilst the original image is based on alpine:3.2 with erlang packages from edge repository, this image always based on alpine:latest via bashell/alpine-bash.

Supported tags and respective Dockerfile links

Usage

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
  • 15671/tcp: SSL GUI listening port
  • 15672/tcp: Non-SSL GUI listening port

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. The wrapper script will use the same certs for GUI SSL access as for AMQPS access.

Examples:

# Run without TLS
docker run -d \
  --name rabbitmq \
  -p 5672:5672 \
  -p 15672:15672 \
  bashell/alpine-rmq:latest
# Run with TLS enabled
docker run -d \
  --name rabbitmq \
  -p 5671:5671 \
  -p 15671:15671 \
  -e SSL_CERT_FILE=/ssl/cert/cert.pem \
  -e SSL_KEY_FILE=/ssl/cert/key.pem \
  -e SSL_CA_FILE=/ssl/CA/cacert.pem \
  bashell/alpine-rmq:latest

Setting default user and password

(Only for 3.6.2 or newer)

If you wish to change the default username and password of guest / guest, you can do so with the RABBITMQ_DEFAULT_USER and RABBITMQ_DEFAULT_PASS environmental variables:

$ docker run -d \
  --name rabbitmq \
  -p 5672:5672 \
  -p 15672:15672 \
  -e RABBITMQ_DEFAULT_USER=user \
  -e RABBITMQ_DEFAULT_PASS=password \
  bashell/alpine-rmq:latest

Customizing

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

About

RabbitMQ on Alpine Linux

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published