Kibana Docker

Page last updated:

Overview

With Docker you can easily push Kibana as an App to manage your ElasticSearch instance.

Kibana in Cloud Foundry with Docker

This describes how to deploy your Kibana instance as a Docker container in Cloud Foundry.

Create the manifest.yml

As the official Docker image does not support Cloud Foundry environment variables, you have to manually set them in the expected format (see https://www.elastic.co/guide/en/kibana/current/settings.html). These variables get parsed at startup and written to kibana.yml in the Docker container.

You can get the credentials for your ElasticSearch service instance via service-key:


cf create-service-key myelasticsearch mykey

cf service-key myelasticsearch mykey

Replace name, route, Kibana version, credentials in our example manifest.yml:

applications:
  - name: mykibana
    memory: 2G
    disk_quota: 2G
    instances: 1
    routes:
      - route: mykibana.scapp.io
    docker:
      image: docker.elastic.co/kibana/kibana:7.3.1
    env:
      ELASTICSEARCH_HOSTS: https://ac9537fc444c589bb63ac44064c54519.elasticsearch.lyra-836.appcloud.swisscom.com
      ELASTICSEARCH_USERNAME: {kibana_system_username}
      ELASTICSEARCH_PASSWORD: {kibana_system_password}

Use ELASTICSEARCH_URL for version 6.x of Kibana.

Push the Docker container as usual with cf push and access it via https://mykibana.scapp.io using the full-access-user.

View the source for this page in GitHub