Skip to content

lasselj/docker-kibana

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

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.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 53.3%
  • Dockerfile 46.7%