Skip to content

Instantly share code, notes, and snippets.

@ionutale
Last active April 5, 2024 04:50
Show Gist options
  • Save ionutale/2862aa94f7c72bd9e77cd2f239172efd to your computer and use it in GitHub Desktop.
Save ionutale/2862aa94f7c72bd9e77cd2f239172efd to your computer and use it in GitHub Desktop.
a small guide to install elasticsearch stack on WSL 2 docker engine

###how to install elasticsearch with kibana

#if you use the "docker WSL 2 enngine" then run the 3 command bellow, 1 at the time:

sysctl -w vm.max_map_count=262144 wsl -d docker-desktop exit

create a network for es-stack docker network create es-stack-network

download and install elastic search docker run -d --name elasticsearchdb --net es-stack-network -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" elasticsearch:6.8.13

download and install kibana docker run -d --name kibana-es-ui --net es-stack-network -e "ELASTICSEARCH_URL=http://elasticsearchdb:9200" -p 5601:5601 kibana:6.8.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment