LLM Workflows vs Docker Compose
If you've been doing any experiments or projects using Docker Compose and somehow your API calls bring you to the point of frustration with a "Connection error" message, such as:
http://localhost:<port_number>

Then, let me tell you a secret. I promise, it is real.
In the screenshot below, I'm making an API call from a Docker Compose which is running on port 3000 to a separate Docker Compose running on port 8080:

Here's proof:

All you need to do is just change the call to this syntax:
http://host.docker.internal:<port_number>
This tidbit is actually documented under the network use-cases and workarounds. But, let's face it, not everyone has read the manual front-to-back.