Skip to content

Commit

Permalink
Merge pull request #308 from dockersamples/add-node-debugger-support
Browse files Browse the repository at this point in the history
Add debug port support for the results (node) app
  • Loading branch information
mikesir87 authored Oct 24, 2023
2 parents cdfd5e0 + 6286b6c commit 85b4013
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Note: Results debugger",
"type": "node",
"request": "attach",
"port": 9229,
"address": "localhost",
"skipFiles": [
"<node_internals>/**"
],
"remoteRoot": "/app",
"localRoot": "${workspaceFolder}/result"
}
]
}
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ services:
result:
build: ./result
# use nodemon rather than node for local dev
entrypoint: nodemon server.js
entrypoint: nodemon --inspect-brk=0.0.0.0 server.js
depends_on:
db:
condition: service_healthy
volumes:
- ./result:/app
ports:
- "5001:80"
- "5858:5858"
- "9229:9229"
networks:
- front-tier
- back-tier
Expand Down

0 comments on commit 85b4013

Please sign in to comment.