19 lines
550 B
YAML
19 lines
550 B
YAML
|
|
version: '3.9'
|
||
|
|
|
||
|
|
services:
|
||
|
|
elasticsearch:
|
||
|
|
image: elasticsearch:8.5.2
|
||
|
|
restart: always
|
||
|
|
hostname: kite.elasticsearch
|
||
|
|
container_name: elasticsearch
|
||
|
|
volumes:
|
||
|
|
- ./data:/usr/share/elasticsearch/data
|
||
|
|
- ./plugins:/usr/share/elasticsearch/plugins
|
||
|
|
- ./config/elasticsearch.yml:/config/elasticsearch.yml
|
||
|
|
environment:
|
||
|
|
- "ES_JAVA_OPTS=-Xms64m -Xmx512m"
|
||
|
|
- discovery.type=single-node
|
||
|
|
ports:
|
||
|
|
- '9200:9200' # 集群通信端口
|
||
|
|
- '9300:9300' # http业务通信端口
|
||
|
|
privileged: true # 环境变量
|