创建dockerfile
FROM rabbitmq:3.9.11-management-alpine COPY rabbitmq_delayed_message_exchange-3.9.0.ez /plugins RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange
同级目录下放置delayed插件(rabbitmq_delayed_message_exchange-3.9.0.ez)
创建镜像
docker build -t rabbitmq:delayed .
创建docker-compose.yaml
version: '3' services: rabbitmq-server: container_name: rabbitmq-server image: rabbitmq:delayed ports: - "5672:5672" - "5671:5671" - "15671:15671" - "15672:15672" environment: - RABBITMQ_DEFAULT_USER=guest - RABBITMQ_DEFAULT_PASS=guest
启动服务
docker-compose up -d
后台管理地址
http://localhost:15672
账号/密码:guest/guest
标签:guest,exchange,delayed,rabbitmq,docker,message From: https://www.cnblogs.com/chulx/p/16616794.html