My KeyCloak Docker Service Shuts Down by Itself

I have installed jboss/keycloak on a docker container that is running on an Amazon EC2 server. This is happening for the second time where it is automatically getting shut down. Upon inspecting the container logs, the following is what I get.

I have no clue why it is stopping, the server has enough performance and memory and has only one other node.js app running.

I also lost all the data in the container. How to prevent further stoppage and loss of data?

Is the EC2 server getting shutdown also? I have found this to be true when using “spot instances” when either capacity or price constraints cause my servers to be shut down.

No. The instance is running fine image