I've looked at many stackoverflow answers but couldn't find a solution to my problem, so I apologise if it seems similar to other questions.
I have a docker compose file which needs to connect to a local database sitting on port 5555. I need to be able to set an env var in the docker compose file that will translate to my host machines IP address.
Something like
environment:
- db_uri=postgres://(HOST_IP):5555/db_name
How can I do this?