Dockerizing a Node.js app with Debugger

Created a node.js app with express.js and debugging support which runs inside a docker container.

Check below code hosted in gitlab.

Getting started:

  • You need docker installed.
  • Run docker-compose build to Build or rebuild services.
  • Run docker-compose up which will create and start containers.
  • Node.js web app is running at http://localhost:3000.
  • Debugger is running at 9232 port. Check this link to know the status http://localhost:9232/json/status.
  • I have already added configuration for VS Code. If you use different IDE, use below configuration
    Port: 9232
    Remote root: /usr/src/app

To learn more about debugger check below links:

To learn more about docker