Quick start install Elasticsearch and Kibana with Docker

In this tutorial, How to Quick start install Elasticsearch and Kibana with Docker.

  • Elasticssearch: localhost:9200
  • Kibana: localhost:5601

Docker compose start with

docker-compose -f docker-compose.yml up -d

Docker compose Stop

$ docker-compose -f docker-compose.yml down

Be careful with command docker compose down. If you want Stop and remove containers, networks, images, and volumes as the picture below

Install Elasticsearch with Kibana with Docker-compose

For example docker-compose.yml

version: '3'
    image: docker.elastic.co/elasticsearch/elasticsearch:6.3.2
      - 9200:9200
      - ./share/elasticsearch/data:/usr/share/elasticsearch/data
      - ./share/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
    networks: [elastic]
      - discovery.type=single-node
    image: docker.elastic.co/kibana/kibana-oss:6.3.2
      - 5601:5601
    networks: [elastic]

Host OS ./share/elasticsearch/data and Guest OS /usr/share/elasticsearch/data are mounted for data persistence of Elasticsearch.

File configure single node “./share/elasticsearch/config/elasticsearch.yml”

cluster.name: "docker-cluster"
discovery.zen.minimum_master_nodes: 1

Steps install Elasticsearch and Kibana with Docker as the picture below

[vagrant@localhost ~]$ tree /home/vagrant/
├── docker-compose.yml
└── share
    └── elasticsearch
        ├── config
        │   └── elasticsearch.yml
        └── data

4 directories, 2 files

Access the client browser as the picture below

Kibana: localhost:5601

Elasticsearch: localhost:9200


Thought the article, How to “Quickstart install Elasticsearch and Kibana with Docker” as above. I hope will this your helpful.

, ,

About HuuPV

My name is Huu. I love technology and especially Devops Skill such as Docker, vagrant, git so forth. I likes open-sources. so I created DevopsRoles.com site to share the knowledge that I have learned. My Job: IT system administrator. Hobbies: summoners war game, gossip.
View all posts by HuuPV →

3 thoughts on “Quick start install Elasticsearch and Kibana with Docker

Leave a Reply

Your email address will not be published. Required fields are marked *

Comment moderation is enabled. Your comment may take some time to appear.

This site uses Akismet to reduce spam. Learn how your comment data is processed.