How do I make containers auto-restart when app crashes?

Due to buggy database drivers, my app keeps crashing, bringing the service down.

I am wondering if there is an option to make containers auto-restart, similar to ` –restart=always` docker option.

Hi, Thanks for reaching out. If a container get’s killed we automatically start it again. Does it get killed or it is in a state that is running but not responsive, Could clarify?

Well the application panics and crashes, and then the site goes down until I manually re-deploy.

How many times does c66 agent try to restart the container?

Also another quick question. Is it possible to NOT serve anything by nginx if the containers are down. No cloud66 error page, no nothing. This way, the loadbalancer can drop the bad node and no traffic is sent that way?

You must be logged in to answer this question