![]() ![]() If the node.js debugger for our application is listening on port 5858, we’ll be able to connect to it from our host machine.We have mapped the port 5858 on the container to our local host port 5858.add an additional port mapping 5858 to local host port 5858:.Inside the docker-compose.yml file, locate the “ports” property, under the “node” service.In order to make it available through our container do the following: However, to keep it as simple as possible, we’re going to stick with the default port that node.js debugger will listen on which 5858. We could specify any port to use by specifying a port along with the –debug flag, when we start our express.js application. To do this, we need to open up the port that our Express.js application debugger will be listening on. We want to be able to attach WebStorm to a running node.js debugger in our application’s Docker container. We are using this port to connect to the running application in our container (e.g. and set the services to use the “hackershall-network” networkĬurrently, we only have the port 7000 of the container mapped to our local host post 7000. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |