I am trying to run use kibana console with my local elasticsearch (container) In the ElasticSearch documentation I see
docker run -p 9200:9200 -p 9300:9300 -e
It is convenient to use docker-compose
as well.
For instance, the file below, stored in home directory, allows to start Kibana with one command:
docker-compose up -d
:
# docker-compose.yml
version: "2"
kibana:
image: "docker.elastic.co/kibana/kibana:6.2.2"
container_name: "kibana"
environment:
- "ELASTICSEARCH_URL=http://:9200"
- "XPACK_GRAPH_ENABLED=false"
- "XPACK_ML_ENABLED=false"
- "XPACK_REPORTING_ENABLED=false"
- "XPACK_SECURITY_ENABLED=false"
- "XPACK_WATCHER_ENABLED=false"
ports:
- "5601:5601"
restart: "unless-stopped"
In addition, Kibana service might be a part of your project in development environment (in case, docker-compose is used).