Sign inSign up

jfrancis/rabbitmq

By jfrancis

•Updated over 7 years ago

Image
0

816

jfrancis/rabbitmq repository overview

RabbitMQ image with preconfigured queues and exchange. To run a container use command

docker container run -d --name myrabbit --hostname my-rabbit -p 15672:15672 jfrancis/rabbitmq

Console accessible at http://localhost:15672⁠ User login: admin/nimda

⁠Dockerfile:

FROM rabbitmq:3.6.11-management-alpine

ADD rabbitmq.config /etc/rabbitmq/ ADD definitions.json /etc/rabbitmq/

⁠rabbitmq.config:

[
  {
    rabbit,
      [
        { loopback_users, [] }
      ]
  },
  {
    rabbitmq_management,
      [
        { load_definitions, "/etc/rabbitmq/definitions.json" }
      ]
  }
].

⁠definitions.json:

{
    "rabbit_version": "3.5.7",
    "users": [{
            "name": "admin",
            "password_hash": "b/XedHeZ8AVWttrmlrs5Mjl+eKI=",
            "tags": "administrator"
        }],
    "vhosts": [{
            "name": "/"
        }, {
            "name": "example-vhost"
        }],
    "permissions": [{
            "user": "admin",
            "vhost": "/",
            "configure": ".*",
            "write": ".*",
            "read": ".*"
        }, {
            "user": "admin",
            "vhost": "example-vhost",
            "configure": ".*",
            "write": ".*",
            "read": ".*"
        }],
    "parameters": [],
    "policies": [],
    "queues": [{
            "name": "example-queue",
            "vhost": "example-vhost",
            "durable": true,
            "auto_delete": false,
            "arguments": {
                "x-max-length": 5
            }
        }],
    "exchanges": [{
            "name": "example-exchange",
            "vhost": "example-vhost",
            "type": "fanout",
            "durable": true,
            "auto_delete": false,
            "internal": false,
            "arguments": {}
        }],
    "bindings": [{
            "source": "example-exchange",
            "vhost": "example-vhost",
            "destination": "example-queue",
            "destination_type": "queue",
            "routing_key": "",
            "arguments": {}
        }]
}

Tag summary

Content type

Image

Digest

Size

22.5 MB

Last updated

over 7 years ago

docker pull jfrancis/rabbitmq