I have a Sping app running on render.com inside docker with port 8080 exposed (EXPOSE 8080 inside Dockerfile), it can be accessed successfully via external url and custom domain I assigned to it.
And I have a Next.js app with SSR and I wound like to access Spring app from it via internal address.
How do I do that? Both services are in the same region.
I can wget my frontend app from backend one using wget service-frontend:10000 and receive 500 error code, since frontend can’t connect to the backend.
But I can’t access backend from frontend.
I tried using both http://service-backend:8080 and service-backend:8080, I tried port 80 and no port at all.
It looks like we failed to detect port 8080 when creating your internal connection string and used the default of 10000. I’ve updated it and you should now be able to connect with service-backend:8080. Can you let me know if it works for you?