Reviewing the Dockerfile and docker-compose.yml files for a basic nodejs mysql project
Probably it's better to you concrete node version.

Also, you can try expressjs framework.

I have got simple example of Dockerfile here in this sub-directory of my repository.
But that is without Docker Compose and connection to any database.