The following configuration for docker-compose seems to do the trick:
docker-compose.yml:
version: '2'
services:
kibana:
network_mode: host
image: docker.elastic.co/kibana/kibana:5.5.3
volumes:
- ./kibana.yml:/usr/share/kibana/config/kibana.yml
kibana.yml:
server.name: kibana
server.host: "0"
elasticsearch.url: "http://localhost:19200"
If port 19200 was busy elastic will start at 19201, 19202 and so on. Your config needs to reflect that.
start docker compose with:
docker-compose up
This will download kibana docker image 5.5.3 and start using the host network, because we want to share our localhost elasticsearch server with the docker.
In case you get the message: *"Optimizing and caching bundles for graph, monitoring, ml, kibana..."* then be patient for a few minutes, kibana will eventually start.
Once kibana started it will complain it cannot find x-pack on the designer`s elastic search server. Get your container id by running:
docker ps
perform as kibana root user x-pack unistallation:
docker exec -u 0 -t <container_id> /bin/bash -c '/usr/share/kibana/bin/kibana-plugin remove x-pack'
The output will be *"Removing x-pack..."*
Restart the docker with:
docker-compose restart
Run some cases in ivy and check what indices you have:
curl localhost:19200/_cat/indices
Open Kibana at localhost:5601 and create an index-pattern that mached the indices you want.
Happy visualizations with kibana!