How to get connection to elasticsearch server in local network inside ddev / Docker container

43 views Asked by At

How is it possible to get a connection to a Elasticserver instance, which is in the local network from inside of a running ddev / Docker container?

I have a ddev instance running. And off course I can use Elasticserver as ddev extension inside of the ddev container. Everything is working fine in thuis mode. But what I also need is to connecet inside of my ddev container a Elasticserver connection, which is in my local network as native Elasticserver installation as well.

All I found is the setup for to connection something from outside of the conntainer into a service which is running in the ddeb Docker container

Something like this:

web_extra_exposed_ports:
 - container_port: 3000
    http_port: 9998
    https_port: 9999

And the connection via https://.ddev.site:9999. Is there a way to do like this, but in Opposite direction?

0

There are 0 answers