2020-02-13 14:06:17 +08:00
|
|
|
version: '3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
elasticsearch:
|
2021-04-23 08:08:53 +08:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
|
2020-02-13 14:06:17 +08:00
|
|
|
hostname: elasticsearch
|
|
|
|
environment:
|
|
|
|
- cluster.name=elasticsearch
|
|
|
|
- bootstrap.memory_lock=true
|
|
|
|
- discovery.type=single-node
|
2020-10-16 13:06:27 +08:00
|
|
|
# - http.publish_host=localhost
|
2020-02-13 14:06:17 +08:00
|
|
|
# - http.host=0.0.0.0
|
|
|
|
# - transport.host=127.0.0.1
|
|
|
|
# - network.host=_local_
|
|
|
|
- network.publish_host=127.0.0.1
|
|
|
|
- logger.org.elasticsearch=warn
|
|
|
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
|
|
ulimits:
|
|
|
|
nproc: 65536
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
# volumes:
|
|
|
|
# - ./data/elasticsearch:/usr/share/elasticsearch/data
|
|
|
|
ports:
|
|
|
|
- 9200:9200
|
|
|
|
platinum:
|
2021-04-23 08:08:53 +08:00
|
|
|
image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
|
2020-02-13 14:06:17 +08:00
|
|
|
hostname: elasticsearch-platinum
|
|
|
|
environment:
|
|
|
|
- cluster.name=platinum
|
|
|
|
- bootstrap.memory_lock=true
|
|
|
|
- discovery.type=single-node
|
|
|
|
- xpack.license.self_generated.type=trial
|
|
|
|
- xpack.security.enabled=true
|
|
|
|
- xpack.watcher.enabled=true
|
2020-10-16 13:06:27 +08:00
|
|
|
# - http.publish_host=localhost
|
2020-02-13 14:06:17 +08:00
|
|
|
# - http.host=0.0.0.0
|
|
|
|
# - transport.host=127.0.0.1
|
|
|
|
# - network.host=_local_
|
|
|
|
- http.port=9210
|
|
|
|
- network.publish_host=127.0.0.1
|
|
|
|
- logger.org.elasticsearch=warn
|
|
|
|
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
|
|
|
|
- ELASTIC_PASSWORD=elastic
|
|
|
|
ulimits:
|
|
|
|
nproc: 65536
|
|
|
|
nofile:
|
|
|
|
soft: 65536
|
|
|
|
hard: 65536
|
|
|
|
memlock:
|
|
|
|
soft: -1
|
|
|
|
hard: -1
|
|
|
|
# volumes:
|
|
|
|
# - ./data/elasticsearch-platinum:/usr/share/elasticsearch/data
|
|
|
|
ports:
|
|
|
|
- 9210:9210
|