Difference between revisions of "Install ElasticSearch using Docker"

From wikieduonline
Jump to navigation Jump to search
Line 2: Line 2:
 
and modify configuration file as needed
 
and modify configuration file as needed
  
 +
 +
== Docker ==
 
::<code>[[docker pull]] docker.elastic.co/elasticsearch/elasticsearch:7.4.1 && [[docker run]] -d --name MYELASTICSEARCH  -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.4.1</code>
 
::<code>[[docker pull]] docker.elastic.co/elasticsearch/elasticsearch:7.4.1 && [[docker run]] -d --name MYELASTICSEARCH  -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.4.1</code>
  
  
 
::Config file: <code>/usr/share/elasticsearch/config/[[elasticsearch.yml]]</code>
 
::Config file: <code>/usr/share/elasticsearch/config/[[elasticsearch.yml]]</code>
Connect to:
+
 
 +
 
 +
== [[docker-compose]] ==
 +
* https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-compose-file
 +
 
 +
 
 +
== Connect to ==
 
* <code>http://localhost:9200/</code>
 
* <code>http://localhost:9200/</code>
 
* <code>http://localhost:9200/_cat/health</code>
 
* <code>http://localhost:9200/_cat/health</code>

Revision as of 13:20, 18 January 2020

Advertising: