I've been looking on the web for a while and haven't found a solution to my problem which is similar to this StackOverflow question Docker HTTP-requests between containers. But this answer is already what I'm doing in my computer. I'm providing my docker-compose file
version: "3"
services:
web:
image: ecdavis15/tsn-web-server
ports:
- "3000:3000"
links:
- app
app:
image: ecdavis15/tsn-app-server
ports:
- "3030:3030"
links:
- mongo
mongo:
image: mongo
ports:
- "27017:27017"
volumes:
- ./data/db:/data/db
In my web container I make an http get request to http://app:3030/history
or maybe http://app:3030/rules
but I'm not seeing the request find its way to the app container. What I'm seeing in the browser console is this error message net::ERR_NAME_NOT_RESOLVED
. I'm not sure why the http request isn't getting into the app container since it's linked to the web container. Any ideas?