WARNING: Version 5.1 of Kibana has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Configuring Kibana on Docker
editConfiguring Kibana on Docker
editThe 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 configuration
editOne 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.2 volumes: - ./kibana.yml:/usr/share/kibana/config/kibana.yml
Environment variable configuration
editUnder 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.2 environment: SERVER_NAME: kibana.example.org ELASTICSEARCH_URL: http://elasticsearch.example.org
Environment variables take precedence over settings configured in kibana.yml
.
Docker defaults
editThe following settings have different default values when using the Docker image:
|
|
|
|
|
|
|
|