Skip to content

🐳 Node.js local development on docker container and nodemon

Notifications You must be signed in to change notification settings

blackbass64/nodemon-docker

Repository files navigation

🐳 Nodemon Docker

Node.js local development on docker container and nodemon

You don't need to install Node.js or npm on your machine to develop Node.js, just using only Docker

Start developing on local machine

Before you begin, you need to make sure you have installed Docker Desktop

Start project, run

docker-compose up

In case if you want to use npm or Node.js commands.

docker-compose run --rm app <YOUR-DESIRED-COMMAND>

ex. docker-compose run app npm install jest --save

If you want to re-build the container please stop the current one and run the following command below.

docker-compose up --build