add 新增 rabbitmq docker编排 包含延迟插件

2.X
疯狂的狮子li 3 years ago
parent 08b352f428
commit 03f65cca9f

@ -354,3 +354,19 @@ services:
depends_on:
- mqnamesrv
network_mode: "host"
rabbitmq:
image: rabbitmq:3.10.6
container_name: rabbitmq
build:
context: ./rabbitmq
environment:
RABBITMQ_DEFAULT_USER: ruoyi
RABBITMQ_DEFAULT_PASS: ruoyi123
ports:
- "15672:15672" # 管理界面端口
- "5672:5672" # api 端口
volumes:
- /docker/rabbitmq/log:/var/log/rabbitmq
- /docker/rabbitmq/data:/var/lib/rabbitmq
network_mode: "host"

@ -0,0 +1,11 @@
FROM rabbitmq:3.10.6-management
MAINTAINER Lion Li
ADD ./rabbitmq_delayed_message_exchange-3.10.2.ez /plugins
RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange
ENTRYPOINT ["rabbitmq-server"]
Loading…
Cancel
Save