Configuring Kibana on Dockeredit
The Docker image provides several methods for configuring Kibana. The conventional
approach is to provide a kibana.yml
file as described in Configuring Kibana, but it’s
also possible to use environment variables to define settings.
Bind-mounted configurationedit
One way to configure Kibana on Docker is to provide kibana.yml
via bind-mounting.
With docker-compose
, the bind-mount can be specified like this:
services: kibana: image: docker.elastic.co/kibana/kibana:5.1.1 volumes: - ./kibana.yml:/usr/share/kibana/config/kibana.yml
Environment variable configurationedit
Under Docker, Kibana can be configured via environment variables. The following mappings are available:
Table 2. Docker Environment Variables
Environment Variable |
Kibana Setting |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These variables can be set with docker-compose
like this:
services: kibana: image: docker.elastic.co/kibana/kibana:5.1.1 environment: SERVER_NAME: kibana.example.org ELASTICSEARCH_URL: http://elasticsearch.example.org
Environment variables take precedence over settings configured in kibana.yml
.
Docker defaultsedit
The following settings have different default values when using the Docker image:
|
|
|
|
|
|
|
|