Easiest Way to Setup Elasticsearch Development Environment With Docker on Windows
Tags: logstash, elasticsearch, docker, kibana
Published: 2021-05-10 09:29:44

---
title: Easiest Way to Setup Elasticsearch Development Environment With Docker on Windows
published: true
date: 2021-04-09 04:54:04 UTC
tags: Logstash,Elasticsearch,Docker,Kibana
canonical_url: https://www.faciletechnolab.com/blog/easiest-way-to-setup-elasticsearch-development-environment-with-docker-on-windows/
---

In this article we will cover easiest way to setup standalone [Elasticsearch](https://www.elastic.co/ "Elasticsearch") development environment with [Docker](https://www.docker.com/ "Docker") on windows.

 ![Easiest Way to Setup Elasticsearch Development Environment With Docker on Windows](https://www.faciletechnolab.com/media/yrajfe4t/esiest-way-to-setup-elasticsearch.png?rmode=max&width=500&height=500 "Easiest Way to Setup Elasticsearch Development Environment With Docker on Windows")

 

Before we start with the actual setup, let’s review what tools we are going to use and know them a little bit more. We are going to setup [Elasticsearch](https://www.elastic.co/ "Elasticsearch"), Kibana and Logstash all inside your local machine using [Docker](https://www.docker.com/ "Docker"). Here is brief introduction to all the tools that we will be using with this setup.

 

### What is [Elasticsearch](https://www.elastic.co/ "Elasticsearch")?

[Elasticsearch](https://www.elastic.co/ "Elasticsearch") is an open source and free tool in the Search as a Service category of a tech stack and solves problem of storing and search data in nearly real time. Its being used by many reputed companies and popular in developers due to its simplicity of implementation, easy to scale and its good documentation and support.

 

### What is Kibana?

Kibana is an open source and free monitoring tool. Its browser-based analytics and search dashboard tool for [Elasticsearch](https://www.elastic.co/ "Elasticsearch"). Its used along with [Elasticsearch](https://www.elastic.co/ "Elasticsearch") because its free and comes with features like easy setup, good user interface, ability to setup dashboards and user-friendly way to do so many things out of [Elasticsearch](https://www.elastic.co/ "Elasticsearch") data.

 

### What is Logstash?

Logstash is an open source tool for event and log management. You can use Logstash to store [Elasticsearch](https://www.elastic.co/ "Elasticsearch") logs and later view or analyse them with Kibana.

 

### What is [Docker](https://www.docker.com/ "Docker")? 

[Docker](https://www.docker.com/ "Docker") is another opensource and the most popular virtual machine and container platform which enables organizations to seamlessly build and share any application and run securely.

 

### Okay! So, What’s next?

Okay, so now that you know a little bit about [Elasticsearch](https://www.elastic.co/ "Elasticsearch"), Kibana, Logstash and [Docker](https://www.docker.com/ "Docker"). We will try to setup local instances of all three as [Docker](https://www.docker.com/ "Docker") containers so that you can use it for your development purpose.

 

### What will you require?

We will require [Docker](https://www.docker.com/ "Docker") setup in your windows machine. If you are on Windows 10, install [Docker Desktop](https://www.docker.com/products/docker-desktop "Docker Desktop") for windows. For any previous version of windows desktop operating system try to use Virtualbox and [Docker Toolbox](https://docs.docker.com/toolbox/toolbox_install_windows/ "Docker Toolbox"). In this article we are assuming you are using [Docker Desktop](https://www.docker.com/products/docker-desktop "Docker Desktop").

 

### Are you ready?

Once you have docker working locally, you can [download docker-compose.yml](https://gist.github.com/FacileTechnolab/52fca950a2c124e0c61aca612a71db52) that is shown below.

<script src="https://gist.github.com/FacileTechnolab/52fca950a2c124e0c61aca612a71db52.js"></script>Start your powershell and switch to the folder where you have docker-compose.yml.

Enter this command to start: `docker-compose up`

This will download latest docker images of [Elasticsearch](https://www.elastic.co/ "Elasticsearch"), Kibana and Logstash and start containers that will be available at localhost.  
  
Elastichsearch: `http://localhost:9200`   
Kibana: `http://localhost:5601`  
Logstash: `http://localhost:9600`

 

### Conclusion

Docker-compose command along with docker-compose.yml is the easiest way to setup [Elasticsearch](https://www.elastic.co/ "Elasticsearch") development environment with docker on windows. Now that you have all three are ready, start using them in your software development. Let us know how you go with it!