Osedea / nodock

Docker Compose for Node projects with Node, MySQL, Redis, MongoDB, NGINX, Apache2, Memcached, Certbot and RabbitMQ images
http://nodock.io
MIT License
762 stars 190 forks source link

Run development with nodemon? #113

Open prashantidealittechno opened 5 years ago

prashantidealittechno commented 5 years ago

How can we run the project with nodemon so we do not have to restart the containers for small changes or fixes in files?

philtrep commented 5 years ago

@prashantidealittechno Absolutely, if you can replace the entrypoint for the node service from run-nodock "node index.js" to whatever you wish. You'd just have to make sure that you've installed the program you want to run.

In your case, the best would probably be to use the scripts section of the package.json to call nodemon index.js and call the npm script from the entrypoint.

Let me know if that works for you.