Skip to content
This repository has been archived by the owner on Nov 7, 2018. It is now read-only.
/ docker-kibana Public archive
forked from bobrik/docker-kibana

Minimal container image for Kibana.

Notifications You must be signed in to change notification settings

pires/docker-kibana

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

This project is no longer maintained

As of November 7th, 2018, I've decided to end my commitment to maintaining this repo and related.

It's been 3 years since I last used Elasticsearch, so I no longer have the motivation it takes to maintain and evolve this project. Also, other projects need all the attention I can give.

It was a great run, thank you all.

docker-kibana

This is Kibana 6.3.1 in a minimal 184MB Docker image. Images are tagged by Kibana versions.

Docker Repository on Quay.io

Running

docker run --name kibana \
           --detach \
           --publish 5601:5601 \
           -e KIBANA_ES_URL=<elasticsearch url> \
           quay.io/pires/docker-kibana:6.3.1

You could set KIBANA_INDEX env variable to set an index for Kibana's data.

Changing the Base Path

When changing the base path, kibana will re-optimize its resources during startup. This easily takes a few minutes and requires more memory than usual. To avoid this, build your own image with the follwing dockerfile: (note the /kibana base URL )

FROM quay.io/pires/docker-kibana:6.3.1
RUN sed -i "s;.*server\.basePath:.*;server\.basePath: /kibana;" /opt/kibana-${KIBANA_VERSION}/config/kibana.yml
RUN  /opt/kibana-${KIBANA_VERSION}/bin/kibana 2>&1 | grep -m 1 "Optimization of .* complete in .* seconds"

Note that you can only access the resulting kibana via a reverse proxy. Config snippet for NGINX:

<Location "/kibana/">
    ProxyPass http://kibana.ops:5601/ ttl=60 disablereuse=On retry=0
</Location>

Config snippet for the package.json of a react-scripts project:

"proxy": {
  "/kibana/": {
    "target": "http://localhost:5601/",
    "ws": true,
    "pathRewrite": {
      "^/kibana": ""
    }
  }
}

About

Minimal container image for Kibana.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 53.3%
  • Dockerfile 46.7%