Skip to content

Instantly share code, notes, and snippets.

@sqrtofsaturn
Created April 12, 2016 01:59
Show Gist options
  • Select an option

  • Save sqrtofsaturn/bd698752fbe3cade6bdb7b3e75d2ad60 to your computer and use it in GitHub Desktop.

Select an option

Save sqrtofsaturn/bd698752fbe3cade6bdb7b3e75d2ad60 to your computer and use it in GitHub Desktop.
Rabbit MQ
FROM rabbitmq:3-management
RUN echo '[ \
{rabbit, [{auth_backends, [rabbit_auth_backend_http]}]}, \
{rabbitmq_amqp1_0, [{default_user, none},{default_vhost, <<"/">>},{protocol_strict_mode, false}]}, \
{rabbitmq_auth_backend_http, \
[{user_path, "http://192.168.99.1:3005/user"}, \
{vhost_path, "http://192.168.99.1:3005/vhost"}, \
{resource_path, "http://192.168.99.1:3005/resource"}]} \
].' > /etc/rabbitmq/rabbitmq.config
ADD http://www.rabbitmq.com/community-plugins/v3.6.x/rabbitmq_auth_backend_http-3.6.x-3dfe5950.ez /plugins/
RUN chmod 777 /plugins/*
RUN rabbitmq-plugins enable --offline rabbitmq_amqp1_0
RUN rabbitmq-plugins enable --offline rabbitmq_auth_backend_http
RUN rabbitmq-plugins enable --offline rabbitmq_auth_mechanism_ssl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment