version: '3'
services:
db:
image: rabbitmq
container_name: rabbitmq
restart: always
ports:
- 5672:5672
- 15672:15672
volumes:
- /docker/rabbitmq:/var/lib/rabbitmq
networks:
- net_db
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=123456
- TZ=Asia/Shanghai
networks:
net_db:
external: true
------------开启网络插件-----------------进bash-------------
rabbitmq-plugins enable rabbitmq_management
评论
发表评论