后台配置文件

  rabbitmq:
     image: rabbitmq:latest
     container_name: rabbitmq
     ports:
       - "5672:5672"  # RabbitMQ server port
       - "15672:15672" # RabbitMQ management console port
     environment:
       RABBITMQ_DEFAULT_USER: admin
       RABBITMQ_DEFAULT_PASS: admin

若要打开控制台则需要进入容器内部输入:

rabbitmq-plugins enable rabbitmq_management

 http://localhost:15672/#/

RabbitMQ docker安装-LMLPHP

08-09 07:20