July 11, 2020

[Note] Elastic in Docker

Pull the image

$ docker pull docker.elastic.co/elasticsearch/elasticsearch:7.8.0


Simple set up


Single node

$ docker run --name elasticsearch -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -d docker.elastic.co/elasticsearch/elasticsearch:7.8.0
$ docker logs -f elasticsearch


Ports


  • 9200: requests
  • 9300: communication with nodes

Access It

http://localhost:9200/


Reference

https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html

No comments: