Docker Container gets down after an error shows up

I am developing a django project and the server is run by a docker container

When there is an error in the code like a "syntax error". Docker logs shows that error and then shuts it self. The problem is until yesterday when I fix the error the docker log was showing "backend-1 | Watching for file changes with StatReloader" and I could still connect the server.

How can I fix this problem?

Back to Top