Example for Debugging Node.js + Typescript Running inside Docker Containers with Hot Reload
Watch the YouTube Tutorial
- Node.js + TypeScript app
- Runs in Docker container
- With hot reload
- Ability to debug with VSCode
- Multiple applications
- A shared library
Recommended OS: Linux
Requirements: Yarn, Docker, Docker Compose
Setup
yarn install
Development
make dev
oryarn dev
(Start development backend services, http://localhost:3000)Ctrl+F5
(Start debugging and choose which container to debug)
docker-compose.yml
backend development environmentpackage.json
contains nodemon configuration for hot reload.vscode/launch.json
launch configuration for debuggers
Icons made by Freepik from www.flaticon.com