Using docker-compose I've got multiple containers running - one of them is the profiler container that calls an API, the other container apiconnection should be receiving the call and sending information back. However when I run the compose file it always returns Get :8080/maccaption: dial tcp: lookup apiconnection on 127.0.0.11:53: no such host on the Profiler container at the http.DefaultClient.Do line.
If I modify the url := " :8080/maccaption" to look at localhost like this url := " :8080/maccaption" it changes to connect refused, but I don't think I should be looking at localhost, I need to look at the Docker container don't I?
For anyone who's attempting to do something like this in the future: the above code actually does work. But where I was going wrong was that in my url := " :8080/maccaption" I was referring to the image name instead of the service name I've defined in the docker-compose.
aa06259810