docker-compose部署rabbitmq

version: "3.7" 
services:
    rabbitmq:
        image: rabbitmq:management 
        container_name: rabbitmq
        ports: 
            - 15672:15672
            - 5672:5672
        environment:
            RABBITMQ_DEFAULT_USER: root
            RABBITMQ_DEFAULT_PASS: root

浏览器访问 localhost:15672进入页面

你可能感兴趣的:(java,java-rabbitmq,rabbitmq,docker,后端,apache)