# Run Kibana in docker

**URL:** <https://discuss.elastic.co/t/run-kibana-in-docker/140899>\
**Category:** Kibana\
**Created:** [July 20, 2018, 1:27pm UTC](https://discuss.elastic.co/t/run-kibana-in-docker/140899 "2018-07-20T13:27:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kornelia\_Watson](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kornelia\_Watson](https://discuss.elastic.co/u/Kornelia_Watson)\
**Post date:** [July 20, 2018, 1:27pm UTC](https://discuss.elastic.co/t/run-kibana-in-docker/140899/1 "2018-07-20T13:27:01Z")

</div>

Hi all,

I'm trying to run Kibana via docker but after loading Kibana page I get Status: Red due to:

- plugin:xpack\_main@5.1.1 X-Pack plugin is not installed on Elasticsearch cluster
- plugin:profiler@5.1.1 X-Pack plugin is not installed on Elasticsearch cluster

I can't find anywhere how I disable these plugins.

My current config is:

> elasticsearch:  
> image: xyz/elasticsearch:5.1.1  
> expose:  
> - 9200  
> ports:  
> - 9200:9200  
> environment:  
> - XPACK\_SECURITY\_ENABLED=false
> 
> kibana:  
> image: [docker.elastic.co/kibana/kibana:5.1.1](http://docker.elastic.co/kibana/kibana:5.1.1)  
> environment:  
> - SERVER\_NAME=localhost  
> - ELASTICSEARCH\_URL=[http://elasticsearch:9200](http://elasticsearch:9200)  
> - ELASTICSEARCH\_HOST=elasticsearch  
> - ELASTICSEARCH\_PORT=9200  
> - XPACK\_MONITORING\_ENABLED=false  
> - XPACK\_SECURITY\_ENABLED=false  
> - XPACK\_REPORTING\_ENABLED=false  
> - XPACK\_GRAPH\_ENABLED=false  
> - XPACK\_ML\_ENABLED=false  
> - XPACK\_WATCHER\_ENABLED=false  
> ports:  
> - 5601:5601  
> expose:  
> - 5601  
> links:  
> - elasticsearch  
> depends\_on:  
> - elasticsearch

Any ideas what I am missing?

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 23, 2018, 4:49am UTC](https://discuss.elastic.co/t/run-kibana-in-docker/140899/2 "2018-07-23T04:49:07Z")

</div>

@jarpy - can you please help ?

Cheers  
Rashmi

---

<div class="post-metadata">

**Author:** ![Kornelia\_Watson](https://avatars.discourse-cdn.com/v4/letter/k/a5b964/32.png) [@Kornelia\_Watson](https://discuss.elastic.co/u/Kornelia_Watson)\
**Post date:** [July 24, 2018, 10:40am UTC](https://discuss.elastic.co/t/run-kibana-in-docker/140899/3 "2018-07-24T10:40:38Z")

</div>

I would really appreciate help with this issue ☹

---

<div class="post-metadata">

**Author:** ![jarpy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jarpy/32/51290_2.png) [@jarpy](https://discuss.elastic.co/u/jarpy)\
**Post date:** [July 25, 2018, 3:43am UTC](https://discuss.elastic.co/t/run-kibana-in-docker/140899/4 "2018-07-25T03:43:33Z")

</div>

I think the biggest issue here is the environment variable for Elasticsearch. The Elasticsearch image uses dotted, lower-case names for configuration variables, while Kibana supports the upper-case syntax (sorry about that).

Here's a working `docker-compose.yml` based on yours:

```auto
---
version: '3'

services:
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:5.1.1
    ports:
      - 9200:9200
    environment:
      # Elasticsearch uses dotted, lower-case environment variables.
      - xpack.security.enabled=false
    # "Links" are deprecated. Use "networks" instead.
    networks:
      - elastic

  kibana:
    image: docker.elastic.co/kibana/kibana:5.1.1
    environment:
      - SERVER_NAME=localhost
      - ELASTICSEARCH_URL=http://elasticsearch:9200
      - XPACK_MONITORING_ENABLED=false
      - XPACK_SECURITY_ENABLED=false
      - XPACK_REPORTING_ENABLED=false
      - XPACK_GRAPH_ENABLED=false
      - XPACK_ML_ENABLED=false
      - XPACK_WATCHER_ENABLED=false
    ports:
      - 5601:5601
    networks:
      - elastic

networks:
  elastic:

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 22, 2018, 9:42am UTC](https://discuss.elastic.co/t/run-kibana-in-docker/140899/6 "2018-08-22T09:42:28Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
