I was facing the same issue. To resolve it, make sure that all your 3 Docker containers are up and running.
When you run locally, run Docker containers on your local machine.
While deployment, use Docker files, or upload to Docker hub and call the images from that path.