后台配置文件
rabbitmq:image: rabbitmq:latestcontainer_name: rabbitmqports:- "5672:5672" # RabbitMQ server port- "15672:15672" # RabbitMQ management console portenvironment:RABBITMQ_DEFAULT_USER: adminRABBITMQ_DEFAULT_PASS: admin
若要打开控制台则需要进入容器内部输入:
rabbitmq-plugins enable rabbitmq_management
http://localhost:15672/#/