docker-compose安装rabbitMQ

version: '3'
services:
    rabbitMQ:
      image: rabbitmq:3.7.8-management
      hostname: localhost
      ports:
        - "4369:4369"
        - "5671:5671"
        - "5672:5672"
        - "15671:15671"
        - "15672:15672"
      environment:
        - RABBITMQ_DEFAULT_USER=root
        - RABBITMQ_DEFAULT_PASS=root

欢迎关注公众号

GitHub地址: https://github.com/fantj2016/java-reader

你可能感兴趣的:(docker-compose安装rabbitMQ)