title: Grafana: Adding Plotly plugin via docker-compose
body: <p>Working with grafana using <code>docker-compose</code>. I want to add the <a href="https://grafana.com/plugins/natel-plotly-panel/installation" rel="nofollow noreferrer">Plotly</a> plugin so I add to my grafana container service defition, thus:</p>
  
  <pre><code>grafana:
      restart: always
      image: grafana/grafana
      container_name: fiware-grafana
      depends_on:
       - postgres
      ports:
       - "3000:3000"
      environment:
       - plugins="crate-datasource,grafana-clock-panel,grafana-worldmap-panel,natel-plotly-panel"
      volumes:
       - ./grafana:/var/lib/grafana:rw
  </code></pre>
  
  <p>However, when I lunch grafana from by browser I don't find this plugin available(see image below). I removed grafana image and downloaded new after adding plotly in grafana service, no change.</p>
  
  <p>How do I add this plugin to Grafana via docker-compose?
  <a href="https://i.stack.imgur.com/JYs6N.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JYs6N.png" alt="enter image description here"></a></p>
  
  <p>EDIT:</p>
  
  <p>docker-compose file modified:</p>
  
  <pre><code>grafana:
      restart: always
      image: grafana/grafana
      container_name: fiware-grafana
      depends_on:
       - postgres
      ports:
       - "3000:3000"
      environment:
       - GF_INSTALL_PLUGINS="crate-datasource,grafana-clock-panel,grafana-worldmap-panel,natel-plotly-panel"
      volumes:
       - ./grafana:/var/lib/grafana:rw
  
  $ docker-compose ps
          Name                      Command                  State                                Ports                          
  -------------------------------------------------------------------------------------------------------------------------------
  fiware-cygnus          /cygnus-entrypoint.sh            Up (healthy)   0.0.0.0:5050-&gt;5050/tcp, 0.0.0.0:5080-&gt;5080/tcp          
  fiware-elasticsearch   /docker-entrypoint.sh elas ...   Up             9200/tcp, 9300/tcp                                      
  fiware-grafana         /run.sh                          Restarting                                                             
  fiware-iotagent        pm2-runtime bin/lwm2mAgent ...   Up (healthy)   0.0.0.0:4041-&gt;4041/tcp, 5684/tcp, 0.0.0.0:5684-&gt;5684/udp
  fiware-memcached       docker-entrypoint.sh memca ...   Up             11211/tcp                                               
  fiware-mongo           docker-entrypoint.sh --bin ...   Up             0.0.0.0:27017-&gt;27017/tcp                                
  fiware-nginx           nginx-debug -g daemon off;       Up             0.0.0.0:80-&gt;80/tcp                                      
  fiware-orion           /usr/bin/contextBroker -fg ...   Up (healthy)   0.0.0.0:1026-&gt;1026/tcp                                  
  fiware-postgres        docker-entrypoint.sh postgres    Up             0.0.0.0:5432-&gt;5432/tcp                                  
  fiware-wirecloud       /docker-entrypoint.sh            Up (healthy)   8000/tcp     
  </code></pre>
  
  <p><strong>EDIT-2</strong></p>
  
  <p>Grafaba container log:</p>
  
  <pre><code>$docker logs -f fiware-grafana
  Failed to send request: 404 not found error
  Error: ✗ Failed to find requested plugin, check if the plugin_id is correct. error: 404 not found error
  
  NAME:
     Grafana cli plugins install - install &lt;plugin id&gt; &lt;plugin version (optional)&gt;
  
  USAGE:
     Grafana cli plugins install [arguments...]
  Failed to send request: 404 not found error
  Error: ✗ Failed to find requested plugin, check if the plugin_id is correct. error: 404 not found error
  
  NAME:
     Grafana cli plugins install - install &lt;plugin id&gt; &lt;plugin version (optional)&gt;
  
  USAGE:
     Grafana cli plugins install [arguments...]
  Failed to send request: 404 not found error
  Error: ✗ Failed to find requested plugin, check if the plugin_id is correct. error: 404 not found error
  
  NAME:
     Grafana cli plugins install - install &lt;plugin id&gt; &lt;plugin version (optional)&gt;
  
  USAGE:
     Grafana cli plugins install [arguments...]
  </code></pre>