0

I am trying to run a Node application in a Docker container. The installation instructions specified that after adding host: '0.0.0.0' to config/local.js and running docker-compose up the app should be accessible at localhost:3000, but I get an error message in the browser saying "The connection was reset - The connection to the server was reset while the page was loading."

I have tried to add the host: '0.0.0.0' in different places, or remove it entirely, access https://localhost:3000 as opposed to at http, connecting to localhost:3000/webpack-dev-server/index.html, etc.

What could be going wrong?

zzz
  • 3
  • 2
  • Can you [edit] the question to include a [mcve]? Do you correctly publish `ports:` from your application container? Are you using a VM-based Docker environment that isn't accessible on `localhost`? – David Maze Dec 14 '22 at 01:28

0 Answers0