делаю конфиг docker-compose.yml
version: '2'
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:5.0.2
restart: always
container_name: elasticsearch
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- xpack.security.enabled=false
- "discovery.zen.ping.unicast.hosts=ip1:9500,ip2:9500,ip3:9500"
- "discovery.zen.minimum_master_nodes=2"
- "path.repo=/backup/snapshot"
- "cluster.name=docker"
- "node.name=n1"
- "network.host=0.0.0.0"
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9400:9200"
- "9500:9300"
volumes:
- esdata:/usr/share/elasticsearch/data
- /backup/snapshot:/backup/snapshot
volumes:
esdata:
driver: local
пробую запускать docker-compose up -d и получаю ошибки
[2019-09-20T09:46:54,529][INFO ][o.e.x.m.e.Exporters ] [n1] skipping exporter [default_local] as it isn't ready yet
[2019-09-20T09:46:54,529][ERROR][o.e.x.m.AgentService ] [n1] exception when exporting documents
org.elasticsearch.xpack.monitoring.exporter.ExportException: exporters are either not ready or faulty
at org.elasticsearch.xpack.monitoring.exporter.Exporters.export(Exporters.java:188) ~[x-pack-5.0.2.jar:5.0.2]
at org.elasticsearch.xpack.monitoring.AgentService$ExportingWorker.run(AgentService.java:208) [x-pack-5.0.2.jar:5.0.2]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_92-internal]