|
@@ -44,7 +44,7 @@ services:
|
|
|
environment:
|
|
|
- "cluster.name=elasticsearch" #设置集群名称为elasticsearch
|
|
|
- "discovery.type=single-node" #以单一节点模式启动
|
|
|
- - "ES_JAVA_OPTS=-Xms512m -Xmx1024m" #设置使用jvm内存大小
|
|
|
+ - "ES_JAVA_OPTS=-Xms512m -Xmx1024m" #设置es使用的jvm内存大小
|
|
|
volumes:
|
|
|
- /mydata/elasticsearch/plugins:/usr/share/elasticsearch/plugins #插件文件目录挂载
|
|
|
- /mydata/elasticsearch/data:/usr/share/elasticsearch/data #数据文件目录挂载
|