My goal is to configure the Docker container, which automatically restarts the NodeJS server when file changes are detected from the host machine.
I chose nodemon to view files for changes.
On Linux and Mac environments, nodemon and docker work flawlessly.
However, when I am in a Windows environment , nodemon does not restart the server.
Files are updated on the host machine and are associated with the volumes parameter in the docker-compose.yml file.
I see that the files were changed when starting docker exec <container-name> cat /path/to/fileChanged.js . This way, I know that the files are linked correctly and have been changed in the container.
Is there a reason nodemon does not restart the server for Windows?
source share