I have some legacy code that uses old versions of Ruby and Rails and Elasticsearch. This code is old enough that I can't get the version of Elasticsearch that is defined in docker-compose.yml to run on my M1 MacBook Pro so I decided to download the old version of it and run it along side my Docker containers.
However, in doing so, my other Rails container now doesn't know to access Elasticsearch. Is there some way to structure my docker-compose.yml such that my Rails container knows where and on what port Elasticsearch is listening?
