ElasticSearch含有IK分词插件。基于官方elasticsearch镜像。
version: '3'
services:
es01:
image: davyinsa/elasticsearch-ik:7.16.1
container_name: es01
environment:
- discovery.type=single-node
- node.name=es01
- cluster.name=es-docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- xpack.security.enabled=true
- ELASTIC_PASSWORD=password
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./es01:/usr/share/elasticsearch/data
ports:
- 9200:9200
- ELASTIC_PASSWORD的默认对应的默认用户名为:elastic
# vim /etc/sysctl.conf 追加以下内容:
vm.max_map_count=655360
# 保存后,执行:
sysctl -p
https://hub.docker.com/_/elasticsearch?tab=tags&page=1&ordering=last_updated
https://github.com/pipizhang/docker-elasticsearch-analysis-ik