Tuesday 23 May 2017

debugging nodejs docker image inside vagrant

to run my node server i use:

babel-watch ./src/index.js --inspect 9229

this is my docker compose: intercom:

image: intercom
working_dir: /service
command: npm run intercom
volumes:
  - ./intercom/service/src/:/service/src:rw
ports:
      - "9229:9229"

code that runs the container:

docker run -i -t -v `pwd`/service/src:/service/src -p 9229:9229 intercom

but i cant see the debug instance in chrome://inspect/#devices any ideas?



via SalvationCode

No comments:

Post a Comment