0% found this document useful (0 votes)
2 views1 page

ELK Stack Docker Setup Guide

The document provides instructions for building and running an Elasticsearch Docker container with specific configurations. It includes commands for building the image, running the container with memory limits, and accessing Elasticsearch locally or on an AWS EC2 instance. Additionally, it mentions the need to enable port 9200 in the EC2 security group for remote access.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

ELK Stack Docker Setup Guide

The document provides instructions for building and running an Elasticsearch Docker container with specific configurations. It includes commands for building the image, running the container with memory limits, and accessing Elasticsearch locally or on an AWS EC2 instance. Additionally, it mentions the need to enable port 9200 in the EC2 security group for remote access.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

docker build -t my-elasticsearch .

docker run --restart=always -ti -d -p 9200:9200 -v


esdata:/usr/share/elasticsearch/data --memory="4g" -e ES_HEAP_SIZE=2g my-
elasticsearch

1. To access the elastic search

# running locally
[Link]

or

# running on aws ec2

a. enable the port 9200 in security group


b. [Link]

You might also like