# Configuration of Kibana running in Docker

**URL:** <https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [July 8, 2021, 11:37am UTC](https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181 "2021-07-08T11:37:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppuschmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppuschmann/32/146751_2.png) [@ppuschmann](https://discuss.elastic.co/u/ppuschmann)\
**Post date:** [July 8, 2021, 11:37am UTC](https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181/1 "2021-07-08T11:37:29Z")

</div>

Hi,

we're running Kibana as a Docker-container and can configure some options with environment-variables, but not all.

These see to work just fine:

```auto
"ELASTICSEARCH_HOSTS": "http://xxxxxxx:9200",
"ELASTICSEARCH_PASSWORD": "password",
"ELASTICSEARCH_SSL_VERIFICATIONMODE": "none",
"ELASTICSEARCH_USERNAME": "username",
"LOGGING_DEST": "stdout",
"LOGGING_JSON": "true",
"SERVER_NAME": "kibana-1",
"SERVER_PORT": "8080",

```

But apparently these aren't changing anything in the running container:

```auto
"KIBANA_DEFAULTROUTE": "/app/discover",
"NEWSFEED_ENABLED": "false",
"STATUS_ALLOWANONYMOUS": "true",
"TELEMETRY_ENABLED": "false",
"TELEMETRY_OPTIN": "false"
"XPACK_APM_ENABLED": "false",
"XPACK_APM_UI_ENABLED": "false",
"XPACK_GRAPH_ENABLED": "false",
"XPACK_GROKDEBUGGER_ENABLED": "true",
"XPACK_INFRA_ENABLED": "false",
"XPACK_ML_ENABLED": "false",
"XPACK_REPORTING_ENABLED": "false",
"XPACK_SIEM_ENABLED": "false",
"XPACK_TELEMETRY_ENABLED": "false",
"XPACK_UPTIME_ENABLED": "false",

```

^ formatting/style copied from our Nomad-Job.

The main goal was to disable the not-needed menu-items like "Observability", "Security", "Enterprise Search".

Used Kibana version is `7.12.1`. Official Elastic Docker-image

On a different Kibana instance, deployed as a Debian-package, the configuration in the kibana.yml (using the different notation) is working fine.

Is there still some sort of limited list of allowed ENV-variables for Kibana or is some undocumented prefix missing?  
Regarding naming / formatting of ENV-variable names I only found this: [Install Kibana with Docker | Kibana Guide [7.13] | Elastic](https://www.elastic.co/guide/en/kibana/current/docker.html#environment-variable-config)

What could be the issue for Kibana not picking up the configuration?

---

<div class="post-metadata">

**Author:** ![tiagocosta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagocosta/32/40045_2.png) [@tiagocosta](https://discuss.elastic.co/u/tiagocosta)\
**Post date:** [July 8, 2021, 4:57pm UTC](https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181/2 "2021-07-08T16:57:22Z")

</div>

@ppuschmann could you provide more information around how are you setting those variables?

@jbudz looks like some of the variables reported as "not working" are already allowed at [dockerfiles/kibana-docker at 7.12 · elastic/dockerfiles · GitHub](https://github.com/elastic/dockerfiles/blob/7.12/kibana/bin/kibana-docker). Do you have any other ideas around why those might not be working?

---

<div class="post-metadata">

**Author:** ![ppuschmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppuschmann/32/146751_2.png) [@ppuschmann](https://discuss.elastic.co/u/ppuschmann)\
**Post date:** [July 8, 2021, 5:48pm UTC](https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181/3 "2021-07-08T17:48:02Z")

</div>

The variables are set in the [env-stanza in a Nomad-Job](https://www.nomadproject.io/docs/job-specification/env).

The above snippets are the content of

```auto
"Env": {
}

```

(here in JSON-format)

Even some `docker inspect <containerid>` shows:

```auto
"Env": [
    "ELASTICSEARCH_HOSTS=http://xxxxxxx:9200",
    "ELASTICSEARCH_PASSWORD=password",
    "ELASTICSEARCH_SSL_VERIFICATIONMODE=none",
    "ELASTICSEARCH_USERNAME=user",
    "KIBANA_DEFAULTROUTE=/app/discover",
    "LOGGING_DEST=stdout",
    "LOGGING_JSON=true",
    "NEWSFEED_ENABLED=false",
    "SERVER_NAME=kibana-1",
    "SERVER_PORT=8080",
    "SERVICE_8080_NAME=kibana-1",
    "STATUS_ALLOWANONYMOUS=true",
    "TELEMETRY_ENABLED=false",
    "TELEMETRY_OPTIN=false",
    "XPACK_APM_ENABLED=false",
    "XPACK_APM_UI_ENABLED=false",
    "XPACK_GRAPH_ENABLED=false",
    "XPACK_GROKDEBUGGER_ENABLED=true",
    "XPACK_INFRA_ENABLED=false",
    "XPACK_ML_ENABLED=false",
    "XPACK_REPORTING_ENABLED=false",
    "XPACK_SIEM_ENABLED=false",
    "XPACK_TELEMETRY_ENABLED=false",
    "XPACK_UPTIME_ENABLED=false",
    "PATH=/usr/share/kibana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "ELASTIC_CONTAINER=true"
],

```

(plus some additional vars)

---

<div class="post-metadata">

**Author:** ![ppuschmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppuschmann/32/146751_2.png) [@ppuschmann](https://discuss.elastic.co/u/ppuschmann)\
**Post date:** [August 2, 2021, 1:10pm UTC](https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181/4 "2021-08-02T13:10:20Z")

</div>

Was there any update so far?  
I'd now try testing with (more) recent versions.

---

<div class="post-metadata">

**Author:** ![ppuschmann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppuschmann/32/146751_2.png) [@ppuschmann](https://discuss.elastic.co/u/ppuschmann)\
**Post date:** [August 11, 2021, 3:43pm UTC](https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181/5 "2021-08-11T15:43:55Z")

</div>

Apparently it is currently not possible to disable these menu-items globally in Kibana (as of `7.14.0`):

> The main goal was to disable the not-needed menu-items like "Observability", "Security", "Enterprise Search".

---

<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:** [September 8, 2021, 5:52pm UTC](https://discuss.elastic.co/t/configuration-of-kibana-running-in-docker/278181/7 "2021-09-08T17:52:53Z")

</div>

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