Nextloud connecting to Elasticsearch on Host

Hello,

im trying to set up Nextcloud (App-center Docker) with an elasticsearch (installed on docker host ucs).

For elasticsearch I used: https://wiki.univention.de/index.php/Cool_Solution_-_ElasticSearch
without the *Beat parts.

For Testing I set the elasticsearch listening port to 0.0.0.0 (network.host)

So from the container elasticsearch is working (testet with curl -XGET ‘IPOFHOST:9200/?pretty’ and curl -XGET ‘172.17.42.1:9200/?pretty’)

But (dont worry) I dont want elasticsearch listening on 0.0.0.0.

I tried opening it for 172.17.0.2 (IP Adress docker container im able to ping it from the docker host) and 127.0.0.1 but both dont work. -> Connection refused

So where do i get the ip to listen the docker container?

Im dump…

Its working now: I had to set the listening ip to 172.17.42.1… (Docker Host ip)

Mastodon