Docker Compose and rabbitmq docker image plugins
<p>I would like to have my customized image based on rabbitmq. That customized image I like to create with docker-compose. I want management plugi started</p>

<p>If I use docker compose as</p>

<pre><code> rabbitmq: # https://registry.hub.docker.com/_/rabbitmq/
 image: rabbitmq:3-management
 ports:
 - 5672:5672
 - 15672:15672
 - 8080:8080
</code></pre>

<p>it does bring up management plugin.</p>

<p>If I use docker compose</p>

<pre><code>version: '2'
services:
# Rabbit service. See https://hub.docker.com/_/rabbitmq/ 
  rabbit:  
    container_name: dev-rabbit
    image:  rabbitmq-our:3-management
    build: ./rabbitmq-our
    environment:
     - RABBITMQ_DEFAULT_USER=rabbit
     - RABBITMQ_DEFAULT_PASS=mq
     - RABBITMQ_DEFAULT_VHOST=my_vhost
    ports:
     - "4369:4369"
     - "5671:5671"
     - "5672:5672"
     - "15672:15672"
     - "8080:8080"
</code></pre>

<p>and Dockerfile in <strong>rabbitmq-our/</strong> folder such as</p>

<pre><code>FROM rabbitmq
</code></pre>

<p>Then no plugins are started and I am not getting the management console. </p>

<p>How I can specify running that "3-management" plugin in my custom image startup ? </p>