Created
November 4, 2019 17:31
-
-
Save antoine-pous/da7168860ab15d784cfef9138eeb232c to your computer and use it in GitHub Desktop.
The simplest way to use RabbitMQ delayed message exchange plugin
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: '2' | |
services: | |
rabbitmq: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
environment: | |
RABBITMQ_DEFAULT_USER: foo | |
RABBITMQ_DEFAULT_PASS: bar | |
tmpfs: | |
- /tmp/rabbitmq | |
ports: | |
- 5672:5672 | |
- 15672:15672 | |
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
FROM rabbitmq:3.8-management | |
ADD https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/v3.8.0/rabbitmq_delayed_message_exchange-3.8.0.ez $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.8.0.ez | |
RUN chown rabbitmq:rabbitmq $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.8.0.ez \ | |
&& rabbitmq-plugins enable --offline rabbitmq_delayed_message_exchange \ | |
&& rabbitmq-plugins enable --offline rabbitmq_consistent_hash_exchange |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment