Created
January 19, 2022 12:12
-
-
Save amir-arad/abc1d18b8ae5c1e91e58accfc2ee12e4 to your computer and use it in GitHub Desktop.
rabbitMQ test setup
This file contains 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
{ | |
"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": {} | |
} | |
] | |
} |
This file contains 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
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" |
This file contains 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
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