liuyuqi-dellpc 2d074fc371 add es 5 years ago
..
README.md 2d074fc371 add es 5 years ago
docker-compose.yml 2d074fc371 add es 5 years ago

README.md

elasticsearch

镜像基于 docker.elastic.co/elasticsearch/elasticsearch:6.6.1

开源地址: https://github.com/elastic/elasticsearch-docker

文档地址: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-configuration-methods

1、单容器启动

docker run -d --name es -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.6.1

#进入容器
docker exec -it es /bin/bash

2、docker-compose编排

docker-compose up

会启动2个 es ,构成一个简单的集群。