docker-compose部署rabbitmq

docker-compose部署rabbitmq单机

创建一个rabbitmq.yml的文件

version: '3'

services:
  rabbit:
    image: rabbitmq:3.8-management
    hostname: rabbit
    container_name: "rabbitmq3.8"
    restart: always
    ports:
      - "5672:5672"
      - "15672:15672"
    environment:
      - RABBITMQ_DEFAULT_USER=admin
      - RABBITMQ_DEFAULT_PASS=hzs888999
    volumes:
      - ./data:/var/lib/rabbitmq

docker-compose部署rabbitmq集群

 

posted on 2023-09-28 10:10  白码一号  阅读(279)  评论(0编辑  收藏  举报