update elastic docs

This commit is contained in:
2022-11-30 16:01:18 +08:00
parent eba1359861
commit a1da3a92f1
3 changed files with 257 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ version: '3.9'
services:
elasticsearch:
image: elasticsearch:8.5.2
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION}
restart: always
hostname: kite.elasticsearch
container_name: elasticsearch
@@ -11,9 +11,16 @@ services:
- ./plugins:/usr/share/elasticsearch/plugins
- ./config/elasticsearch.yml:/config/elasticsearch.yml
environment:
- "ES_JAVA_OPTS=-Xms64m -Xmx512m"
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms64m -Xmx512m" # jvm
- discovery.type=single-node # 单节点
ports:
- '9200:9200' # 集群通信端口
- '9300:9300' # http业务通信端口
privileged: true # 环境变量
privileged: true # 环境变量
kibana:
image: docker.elastic.co/kibana/kibana:8.5.2
environment:
ELASTICSEARCH_HOSTS: '["http://es01:9200","http://es02:9200","http://es03:9200"]'