Docker node container cannot start but works locally without docker

Following the tutorial at

Docker Desktop on Mac

My code repo is at, where you can see the Dockerfile and docker-compose.yml, you can clone and run docker-compose up -d --build to reproduce my problem.

When I run docker-compose up -d --build, the flask and database containers work well but the node container exits with error code 0 when “Starting the development server…”

One thing I noticed is that I don’t see [wds] webpack related info locally on my Mac. I don’t know what they are.

enter image description here

enter image description here

but when I go to /services/client and run npm start, the node server starts and works well locally.

There is no error message during the docker building process. I have spent a few hours on this and cannot figure it out. Please help!! Thanks a lot!!

However, the author’s repo at with older versions does not have this issue:
enter image description here

Source: StackOverflow