Open Mxas opened 6 years ago
To the Cerebro container, address http//:localhost:9200
resolves to something else than if Cerebro was running together with Elasticsearch on your host machine. You need an address for your Elasticsearch that the container can resolve.
Docker Compose is such a nice tool because everything its running is on the same network.
version: "2"
services:
elasticsearch:
image: elasticsearch
ports:
- 9200:9200
cerebro:
image: dylanmei/cerebro
ports:
- 9000:9000
command:
- bin/cerebro
- -Dhosts.0.host=http://elasticsearch:9200
I have meet the same problem,have you solved it?
maybe someone can comment or help: having a problem with local elastic-search installation. can not access elastic“search form docker-cerebro. May be my elastic search configuration problem...
Error connecting to [http://localhost:9200]
interesting thing is that if I lunch this application not from docker everything works fine