All Docker containers unexpectedly gone to exit state

I just faced an issue today. Everything was in perfect mode for two weeks. I logged into my EC2 instance and ran docker ps -a and found that all containers exited 40 minutes ago. Can anybody guide me where to see logs and troubleshoot my problem?
Restarting docker-compose is not a permanent solution.

Thank you,