I’m trying to include the React part of a simple CRUD React/Spring-boot application into Docker. It works fine when neither side is in Docker. But when I create a docker file from the front end and run it, I get the initial login page, but after that, it’s the default white label error page with a 404 code.
The network activity shows it’s trying to make a call to
http://localhost:808/private, which looks like it may be the redirect to the error page.
I’m thinking the problem may be that the back end needs to be in the container as well, which is the ultimate plan. But I’m not sure if that’s the problem. It seems like an app in a container should be able to make an API call to the outside of the container.
Here’s the nginx.conf file:
Any ideas/thoughts are most welcome.