I have docker-compose file where i describe 4 containers and added them to created internal docker network, my frontend container tries to get data from my backend container using ajax, where i wrote a string “http://backend:5050/api/login”, problem is that any external browsers does not know about name “backend”, it is logical. But how i can to solve this problem, so any user can use my application based on ajax and have no problem with name resolution.
i tried fix nginx.conf on my frontend container to do proxy, but it doesnt work.