docker 安装es
docker-compose.yml
version: '2'
services:
elasticsearch:
container_name: elasticsearch
image: elasticsearch:6.5.4
ports:
- "9200:9200"
- "9300:9300"
volumes:
- "F:/esdocker/da/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
- "F:/esdocker/da/data:/usr/share/elasticsearch/data"
- "F:/esdocker/da/plugins:/usr/share/elasticsearch/plugins"
environment:
- "ES_JAVA_OPTS=-Xms256m -Xmx512m"
- "discovery.type=single-node"
- "COMPOSE_PROJECT_NAME=elasticsearch-server"
restart: always
head:
image: bolingcavalry/elasticsearch-head:6
container_name: head
ports:
- 9100:9100
elasticsearch.yml
http.host: 0.0.0.0
http.cors.enabled: true
http.cors.allow-origin: "*"
cluster.name: my-cluster
transport.host: 0.0.0.0
bootstrap.system_call_filter: false
network.host: 0.0.0.0
最后执行:docker-compose.exe -d up
如果有来生,要做一片树叶。
春天恋上枝,炎夏恋上水。
深秋恋上土,东来化作泥。
润物细无声,生生世世恋红尘。

浙公网安备 33010602011771号