Sign inSign up

apollo13/rabbitmq-server

By apollo13

•Updated over 10 years ago

RabbitMQ server for Apollo13 environment.

Image
0

2.8K

apollo13/rabbitmq-server repository overview

⁠RabbitMQ server

Simple implementation of the RabbitMQ server⁠ Docker⁠ image based on Tutum⁠ code.

⁠Instalation

Preferred way to install and using the project is via the Docker Hub⁠.

docker pull apollo13/rabbitmq-server

⁠Running the RabbitMQ server

On development environment, before the starting of the server check existence of running Redis docker image as is described in apollo13/ubuntu README.md

Run the following command to start rabbitmq:

docker run --name rabbitmq-server -d -p 5672:5672 -p 15671:15671 -p 15672:15672 -p 15674:15674 --env EC2_ENVIRONMENT=false apollo13/rabbitmq-server

For boot2docker⁠ users: Set port forwarding from boot2docker⁠ to local computer:

VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port5672,tcp,,5672,,5672";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port15672,tcp,,15671,,15671";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port15672,tcp,,15672,,15672";
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port15674,tcp,,15674,,15674";

For already running boot2docker virtual:

VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port5672,tcp,,5672,,5672";
VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port15672,tcp,,15671,,15671";
VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port15672,tcp,,15672,,15672";
VBoxManage controlvm "boot2docker-vm" natpf1 "tcp-port15674,tcp,,15674,,15674";

The first time that you run your container, a new random password will be set. To get the password, check the logs of the container by running:

docker logs rabbitmq-server

You will see an output like the following:

========================================================================
You can now connect to this RabbitMQ server using, for example:

    curl --user admin:5elsT6KtjrqV  http://<host>:<port>/api/vhosts

Please remember to change the above password as soon as possible!
========================================================================

In this case, 5elsT6KtjrqV is the password set. You can then connect to RabbitMQ:

curl --user admin:5elsT6KtjrqV  http://<host>:<port>/api/vhosts

Or try to open Rabbit MQ management⁠ from the browser:

http://localhost:15672

Alternatively you can set up initial username and password while starting the container using environment variables:

docker run --name rabbitmq-server -d -p 5672:5672 -p 15671:15671 -p 15672:15672  -p 15674:15674 --env RABBITMQ_USER=apollo --env RABBITMQ_PASS=mysecretpassword --env EC2_ENVIRONMENT=false apollo13/rabbitmq-server

For Development environment you have to set link to docker container with redis for storing credentials for other containers

docker run --name rabbitmq-server -d -p 5672:5672 -p 15671:15671 -p 15672:15672 -p 15674:15674 --link --env EC2_ENVIRONMENT=false config-service:config-service apollo13/rabbitmq-server

⁠Building Docker image locally

Prepare standard named project directory

mkdir ./rabbitmq-server
cd ./rabbitmq-server

Preferred way to build the Docker image is via the GIT⁠.

git clone [email protected]:apollo-13/docker-rabbitmq-server.git

Build the image in the root folder ./ of the cloned repository

docker build -t apollo13/rabbitmq-server .

⁠Settings

The following environment variables are supported:

RABBITMQ_USER : Name of the administrator account to be created (default admin).

RABBITMQ_PASS : Password to the administrator account specified in RABBITMQ_USER setting.

RABBITMQ_SSL_CERT, RABBITMQ_SSL_KEY, RABBITMQ_SSL_CACERT : SSL certificates for WebStomp.

Tag summary

Content type

Image

Digest

Size

199.8 MB

Last updated

over 10 years ago

docker pull apollo13/rabbitmq-server