/docker-kibana-alpine

Alpine Linux based Kibana Docker Image

Primary LanguageDockerfileMIT LicenseMIT

kibana-logo

docker-kibana-alpine

CircleCI License Docker Stars Docker Pulls Docker Image

Alpine Linux based Kibana Docker Image

Table of Contents

Why?

Compare Image Sizes:

  • official kibana = 1.01GB
  • blacktop/kibana = 322MB

Alpine version is 688 MB smaller !

Dependencies

Image Tags

REPOSITORY          TAG                 SIZE
blacktop/kibana     latest              360MB
blacktop/kibana     7.10                360MB
blacktop/kibana     7.9                 503MB
blacktop/kibana     7.8                 581MB
blacktop/kibana     7.7                 576MB
blacktop/kibana     7.6                 389MB
blacktop/kibana     7.5                 306MB
blacktop/kibana     7.4                 310MB
blacktop/kibana     7.3                 322MB
blacktop/kibana     7.2                 294MB
blacktop/kibana     7.1                 253MB
blacktop/kibana     7.0                 253MB
blacktop/kibana     6.8                 242MB
blacktop/kibana     6.7                 242MB
blacktop/kibana     6.6                 225MB
blacktop/kibana     6.5                 269MB
blacktop/kibana     6.4                 250MB
blacktop/kibana     6.3                 316MB
blacktop/kibana     6.2                 309MB
blacktop/kibana     6.1                 255MB
blacktop/kibana     6.0                 209MB
blacktop/kibana     5.6                 191MB
blacktop/kibana     5.5                 189MB
blacktop/kibana     5.4                 203MB
blacktop/kibana     5.3                 145MB
blacktop/kibana     x-pack              685MB
blacktop/kibana     5.2                 246MB
blacktop/kibana     5.1                 246MB
blacktop/kibana     5.0                 245.8MB
blacktop/kibana     4.6                 229.7MB

NOTE: tag x-pack is the same as tag latest, but includes the x-pack plugin.

Getting Started

$ docker run --init -d --name elasticsearch -p 9200:9200 blacktop/elasticsearch
$ docker run --init -d --name kibana --link elasticsearch -p 5601:5601 blacktop/kibana

Documentation

Customize at runtime via environment variables

There are two types of env vars:

  • KIBANA_ELASTICSEARCH_URL=http://localhost:9200
  • elasticsearch.url=http://localhost:9200

To use your own elasticsearch address via KIBANA_ELASTICSEARCH_URL

$ docker run --init -d --name kibana -e KIBANA_ELASTICSEARCH_URL=http://some-elasticsearch:9200 -p 5601:5601 blacktop/kibana

For elasticsearch running on a OSX host it would be

$ docker run --init -d --name kibana \
  -p 5601:5601 \
  --net host \
  -e KIBANA_ELASTICSEARCH_URL="http://$(ipconfig getifaddr en0):9200" \
  blacktop/kibana

For x-pack with basic auth:

$ docker run --init -d --name kibana \
             --restart unless-stopped \
             -p 443:5601 \
             -v /etc/letsencrypt/archive/demo.malice.io:/certs \
             -e KIBANA_SERVER_SSL_ENABLED=true \
             -e KIBANA_SERVER_SSL_KEY=/certs/privkey1.pem \
             -e KIBANA_SERVER_SSL_CERTIFICATE=/certs/cert1.pem \
             -e KIBANA_ELASTICSEARCH_URL=$KIBANA_ELASTICSEARCH_URL \
             -e KIBANA_ELASTICSEARCH_USERNAME=$KIBANA_ELASTICSEARCH_USERNAME \
             -e KIBANA_ELASTICSEARCH_PASSWORD=$KIBANA_ELASTICSEARCH_PASSWORD \
             --log-opt max-size=100m \
             --log-opt max-file=3 \
             blacktop/kibana:x-pack

Issues

Find a bug? Want more features? Find something missing in the documentation? Let me know! Please don't hesitate to file an issue

Credits

Heavily (if not entirely) influenced by https://github.com/docker-library/kibana

License

MIT Copyright (c) 2016-2020 blacktop