I'm pretty new to Docker Ecosystem and I have the following question
Is it possible to get the HOST'S IP ADDRESS from docker compose in the newer versions of Docker (I'm on a Mac) - I have searched and I see there isn't an easy way but it seems the answers are old, so I'm not sure if with the newer versions this is possible.
I have a container with a React APP that connects to an API currently on my local machine. If I set the React's API baseURL to http://localhost/ it works fine but If I access the React App from another computer in my network it doesn't connect. So instead of using http://localhost/ I was wondering if its possible to set it to the Host's IP Address dynamically instead of hardcoding it. I was thinking of using and ENV variable to set the API's base URL.