Created
April 12, 2016 01:59
-
-
Save sqrtofsaturn/bd698752fbe3cade6bdb7b3e75d2ad60 to your computer and use it in GitHub Desktop.
Rabbit MQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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