To create the docker, go to the root dir and type:
docker-compose up
To tear it down, type:
docker-compose down
- A great deal of time was spent on this error. The issue was occuring due to the package
bcrypt
since it requires peer dependencies which are not installed in alpine by default. Solution was to change frombcrypt
tobcryptjs
which had no dependencies whatsoever. - Mounted file changes was not causing a restart in nodemon. This seems to be an issue with
chokidar
in networked environments such as containers. To fix this, use --legacy-watch flag when running nodemon:nodemon -L server.js