diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..bb9e476 --- /dev/null +++ b/.vscode/launch.json @@ -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": [ + "/**" + ], + "remoteRoot": "/app", + "localRoot": "${workspaceFolder}/result" + } + ] +} \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 7c2577a..d48b348 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,7 @@ 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 @@ -35,7 +35,7 @@ services: - ./result:/app ports: - "5001:80" - - "5858:5858" + - "9229:9229" networks: - front-tier - back-tier