Docker Exits with code 1


I am new to Docker and i am not able to understand why my docker-compose keeps on crashing i have done the task of deleting the node_modules and have also tried force recreate option but the docker exits with a code 1. There is another thing to note this does not happen always, sometime everything runs properly but as or when it crashes i have to keep trying to get it to run again for hours. Please shed some light i will be really thankful. Here are my system details

OS Version/build - Ubuntu Xenial 16.04 
App version - Docker version 18.03.1-ce
                       Docker-compose version 1.21.2, build a133471     

Steps to reproduce - run Docker-compose up