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.
latest
(Dockerfile)3.7.9
(Dockerfile)3.7.8
(Dockerfile)3.7.7
(Dockerfile)3.7.6
(Dockerfile)3.7.5
(Dockerfile)3.7.4
(Dockerfile)3.7.3
(Dockerfile)3.7.2
(Dockerfile)3.7.1
(Dockerfile)3.7.0
(Dockerfile)3.6.15
(Dockerfile)3.6.14
(Dockerfile)3.6.13
(Dockerfile)3.6.12
(Dockerfile)3.6.11
(Dockerfile)3.6.10
(Dockerfile)3.6.9
(Dockerfile)3.6.8
(Dockerfile)3.6.7
(Dockerfile)3.6.6
(Dockerfile)3.6.5
(Dockerfile)3.6.4
(Dockerfile)3.6.3
(Dockerfile)3.6.2
(Dockerfile)3.6.1
(Dockerfile)3.6.0
(Dockerfile)
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 enabled5672/tcp
: Non-SSL default listening port15671/tcp
: SSL GUI listening port15672/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
(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
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/
.