Currently I use Docker with an ElasticSearch cluster, which is placed outside the container.
From my docker I manage to create a mapping (so my ip it’s good), and I manage to launch simple request in python language.