Error 500 in Next.js Image Optimizer After Docker Build: “connect ECONNREFUSED 127.0.0.1:9000”
I am working on a Next.js application and encountering an issue after building it in Docker. The server runs on port 9000, and the frontend runs on port 3000. The images are loaded properly in the Next.js avatar tag, but they do not appear in the Image component. Instead, I get a 500 Internal Server Error.