https://github.com/marcbachmann/dockerfile-kibana4
:chart_with_upwards_trend: Kibana 4 Dashboard, Environment variable support, without elasticsearch server
https://github.com/marcbachmann/dockerfile-kibana4
Last synced: 9 months ago
JSON representation
:chart_with_upwards_trend: Kibana 4 Dashboard, Environment variable support, without elasticsearch server
- Host: GitHub
- URL: https://github.com/marcbachmann/dockerfile-kibana4
- Owner: marcbachmann
- Created: 2014-12-14T15:57:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:14:50.000Z (over 2 years ago)
- Last Synced: 2025-01-03T04:50:45.630Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 10.7 KB
- Stars: 10
- Watchers: 5
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerfile for Kibana v4
This Dockerfile contains the [Kibana](https://github.com/elasticsearch/kibana) Dashboard. The default Kibana port 5601 is exposed.
To run this container you'll need a separate elasticsearch server.
Kibana automatically proxies all requests from the dashboard to the elasticsearch server. So the ES server doesn't need to be accessible from the internet.
## Tags
Available Kibana Versions:
`4.0.0-BETA2`
`4.0.0-BETA3`
`4.0.0-RC1`
`4.0.0`
`4.0.1`
`4.0.2`
`4.1.0`
`4.1.1`
`4.1.4`, `latest`
## Run
To connect to an elasticsearch server on the docker host, run this:
```bash
docker run -e ELASTICSEARCH=http://172.17.42.1:9200 -P marcbachmann/kibana4
```
## Upgrade
### from 4.0.0-RC1 to 4.0.0
There was a bug in the automatic config migration of Kibana 4.0.0-RC1.
If you're migrating from v4.0.0-RC1 to v4.0.0, you have to execute the following command.
```
BODY=`curl -XGET 'localhost:9200/.kibana/config/4.0.0-rc1/_source'`;
curl -XPUT "localhost:9200/.kibana/config/4.0.0" -d "$BODY" && curl -XDELETE "localhost:9200/.kibana/config/4.0.0-rc1"
```
## Options
Most configuration variables can be set using environment variables.
```
ENV VAR - default value
---------------------------------------
ELASTICSEARCH = http://172.17.42.1:9200
KIBANA_INDEX = .kibana
DEFAULT_APP_ID = discover
REQUEST_TIMEOUT = 60
SHARD_TIMEOUT = 30000
VERIFY_SSL = true
```
### Linking an Elasticsearch Container
When you're running Elasticsearch in a separate docker container, you can automatically link to it by naming the linked container `elasticsearch`. By doing so the `ELASTICSEARCH` variable gets automatically set. To link it correctly, it needs to expose the port 9200.
e.g.
```
docker run -d --name myElasticSearch elasticsearch
docker run -d --link myElasticSearch:elasticsearch -P marcbachmann/kibana4
```