安装步骤:
一、具备Docker环境
二、创建docker虚拟网络
三、拉取镜像
四、
五、通过docker-compose.yml安装启动容器
version: '2.2'
services:
elasticsearch:
image: elasticsearch:7.17.10
container_name: es7
environment:
- node.name=es7
- cluster.name=es-cluster
- discovery.seed_hosts=es7
- cluster.initial_master_nodes=es7
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- /container/mnt/elk/elasticsearch/data:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- elastic