Hi @garcia
I would rather do a service for each one of the container. You can also configure more settings directly in the docker-compose.yml. Have you seen the following thread? Multi host elasticsearch cluster using docker
There is a link to further installation instructions on which my environment is based on.
Hope this helps.
MiTschMR