Answer the question
In order to leave comments, you need to log in
How to properly run nodemon from docker without CPU load?
Hello.
There are files:
FROM node:alpine
RUN yarn global add nodemon
version: '3'
services:
server_node:
build: ./app/
volumes:
- "./app:/app"
ports:
- "9000:3000"
command: "nodemon --legacy-watch --polling-interval 4000 /app/bin/server.node.js"
command: "node /app/bin/server.node.js"
, then no file tracking occurs and no CPU load occurs. Answer the question
In order to leave comments, you need to log in
After some time tormenting with nodemon, we took pm2-dev and it became much better pm2.keymetrics.io/docs/usage/pm2-development
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question