Docker Compose Elasticsearch And Kibana
In this article, We will show you how to run Elasticsearch and Kibana containers using Docker Compose.

Initial Setup
The first step is to setup Elasticsearch on your system. We are using Docker to setup. Make sure you have installed docker on your system or can download it from the Docker webpage.
Let’s start
Create a new file docker-compose.yml under any directory, In our case, we are using the following project structure.
Project (Directory)
├── docker-compose.yml (File)

docker-compose.yml
In the above file, we are creating 2 containers one for Elasticsearch and second for Kibana
To start containers, Run the following command in the terminal
docker-compose up
When you run the above command you will see the following ouput in the terminal.

Verify Running Elasticsearch
To verify, Running container of Elasticsearch. Open the browser and type the following URL
http://localhost:9200
You will see the JSON response in the browser as shown below in the screenshot.

Verify Running Kibana
To verify, Running container of Kibana. Open the browser and type the following URL
http://localhost:5601
You will see the Welcome screen in the browser as shown below in the screenshot.

We are done with Elasticsearch and Kibana setup using Docker Compose
Thank you 🚀🚀🚀