I have a Node application with passport-local authentication. In Visual Studio on Ubuntu, when I run the app it works fine, if login is successful it redirects to the homepage.
When I build a docker container from that app in ubuntu, pages that do not need login work fine, but pages that need login give the problem: when I log in with correct username and pw, instead of redirecting it gives a http 502 error, "currently unable to handle this request". I do not see any errors or logs.
The same app on MacOS, works from Visual studio AND works from a container that is build in the same way.
Hope someone can help, thanks!