docker-compose简易搭建rabbitmq

version: '2'
services:
  rabbit1:
    image: byh-registry:5000/rabbitmq:v1
    container_name: rabbitmq
    ports:
      - "4369:4369"
      - "5671:5671"
      - "5672:5672"
      - "15671:15671"
      - "15672:15672"
    environment:
      - RABBITMQ_DEFAULT_USER=admin
      - RABBITMQ_DEFAULT_PASS=123456
    restart: always
    network_mode: "host"

posted @ 2019-10-22 14:19  黑崎一护有头屑  阅读(2391)  评论(0编辑  收藏  举报