Skip to content

Instantly share code, notes, and snippets.

@antoine-pous
Created November 4, 2019 17:31
Show Gist options
  • Save antoine-pous/da7168860ab15d784cfef9138eeb232c to your computer and use it in GitHub Desktop.
Save antoine-pous/da7168860ab15d784cfef9138eeb232c to your computer and use it in GitHub Desktop.
The simplest way to use RabbitMQ delayed message exchange plugin
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
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