I'm starting the Elasticsearch 7.11 in my linux, and it works when i run
curl -XGET localhost:9200 INSIDE MY LINUX. But the issue is, i'm trying to access this Elasticsearch service started in my linux, inside a Devilbox docker, and when i run
curl -XGET localhost:9200 on the CLI inside Devilbox, it returns 'connection refused'·
Already tried to change network.host to 0.0.0.0, 127.0.0.1 and it doesn't worked. Already tried to change discovery hosts to ["0.0.0.0", "[::1]"] and it doesn't worked too.
I'm triyng this way, because installing the elasticsearch inside devilbox container didn't worked. So i'm using the elasticsearch service outside the devilbox container.