version: '3'
services:
master:
image: elasticsearch:5
volumes:
- ./es_master:/usr/share/elasticsearch/config
ports:
- "9200:9200"
expose:
- "9200"
- "9300"
node1:
image: elasticsearch:5
volumes:
- ./es_node1:/usr/share/elasticsearch/config
expose:
- "9200"
- "9300"
links:
- master:elasticsearch-master
cluster.name: docker-application
http.host: 0.0.0.0
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["127.0.0.1"]
cluster.name: docker-application
http.host: 0.0.0.0
http.port: 9200
http.cors.enabled: true
http.cors.allow-origin: "*"
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["elasticsearch-master"]
这个起不了
0 个回复