docker compose enable rabbitmq enable plugins

version: '3.7'
services:
  rabbitmq:
    image: rabbitmq:management
    ports:
      - "5672:5672"
      - "15672:15672"
    environment:
      RABBITMQ_DEFAULT_USER: user
      RABBITMQ_DEFAULT_PASS: password
      RABBITMQ_DEFAULT_VHOST: /
    volumes:
      - ./rabbitmq:/var/lib/rabbitmq
    command: rabbitmq-plugins enable rabbitmq_management