Difference between revisions of "Install ElasticSearch using Docker"
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
Follow the instructions: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html and modify configuration file as needed
Contents
Docker
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
- Config file:
/usr/share/elasticsearch/config/elasticsearch.yml
- Config file:
docker-compose
Connect to
Also install Kibana: Kibana/Install Kibana using docker
See also
- ElasticSearch/Install Elasticsearch-hq management GUIs for Elasticsearch
- Docker:
docker-compose
, Docker Desktop, Docker Scout, Docker Swarm, Docker Volumes, Docker images management, docker network,docker inspect
,docker volume inspect
,Dockerfile
, Docker Engine release notes,docker kill
,moby
, Docker-in-Docker,docker context
,buildx
,docker tag
,docker system prune
, Docker Hub,hub-tool, /etc/docker/daemon.json
,hostconfig.json
, dockerd, logs, Docker logging, Backup,docker service
,depends on
,--dns, --filter
,--mount
,docker login
,docker build
,apt remove docker.io
,.dockerignore
, docker context ls |docker-machine, .docker/
, PWD,$HOME/.docker/config.json
, Docker ID,--env-file, docker --help
Advertising: