rabbitmq-docker-compose安装rabbitmq

rabbitmq-docker-compose安装

docker-compose.yml

version: '3'
services:
  rabbitmq:
    image: rabbitmq:management
    container_name: rabbitmq
    restart: always
    hostname: my-rabbitmq
    ports:
      - 15672:15672
      - 5672:5672
    volumes:
      - $PWD/data:/var/lib/rabbitmq
    environment:
      - RABBITMQ_DEFAULT_USER=rabbitmq
      - RABBITMQ_DEFAULT_PASS=rabbitmq

运行:

docker-compose up -d

访问

在浏览器输入 http://192.168.93.131:15672

rabbitmq-docker-compose安装rabbitmq_第1张图片

你可能感兴趣的:(rabbitmq)