Skip to content

Instantly share code, notes, and snippets.

@amir-arad
Created January 19, 2022 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amir-arad/abc1d18b8ae5c1e91e58accfc2ee12e4 to your computer and use it in GitHub Desktop.
Save amir-arad/abc1d18b8ae5c1e91e58accfc2ee12e4 to your computer and use it in GitHub Desktop.
rabbitMQ test setup
{
"users": [
{
"name": "test",
"password": "test",
"tags": "administrator"
}
],
"vhosts": [
{
"name": "foobar"
}
],
"permissions": [
{
"user": "test",
"vhost": "foobar",
"configure": ".*",
"write": ".*",
"read": ".*"
}
],
"parameters": [],
"policies": [],
"exchanges": [
{
"name": "foo",
"vhost": "foobar",
"type": "fanout",
"durable": true,
"auto_delete": false,
"internal": false,
"arguments": {}
}
],
"queues": [
{
"name": "foo",
"vhost": "foobar",
"durable": true,
"auto_delete": false,
"arguments": {
"x-dead-letter-exchange": "foo"
}
}
],
"bindings": [
{
"source": "foo",
"vhost": "foobar",
"destination": "foo",
"destination_type": "queue",
"routing_key": "*",
"arguments": {}
}
]
}
version: "3"
services:
rabbitmq:
image: rabbitmq:3.9.12-management-alpine
container_name: 'rabbitmq'
environment:
- RABBITMQ_DEFAULT_VHOST=foobar
volumes:
- ./rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro
- ./definitions.json:/etc/rabbitmq/definitions.json:ro
ports:
- "4369:4369"
- "5671:5671"
- "5672:5672"
- "15672:15672"
- "25672:25672"
management.load_definitions = /etc/rabbitmq/definitions.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment