liuyuqi-dellpc 2d074fc371 add es | 5 years ago | |
---|---|---|
.. | ||
README.md | 5 years ago | |
docker-compose.yml | 5 years ago |
镜像基于 docker.elastic.co/elasticsearch/elasticsearch:6.6.1
开源地址: https://github.com/elastic/elasticsearch-docker
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 ,构成一个简单的集群。