title: how to automatically monitor and restart the docker container when it crashes down?
body: <p>I am  currently running two virtual servers with <a href="https://registry.hub.docker.com/_/ghost/" rel="noreferrer">offical ghost image</a> and <code>nginx-proxy</code> image, here is my build-up.</p>
  
  <pre><code>docker run -d -p 86:2368 --name home -e "VIRTUAL_HOST=hostname.com" ghost 
  docker run -d -p 85:2368 --name home-blog -e "VIRTUAL_HOST=blog.hostname.com" ghost
  </code></pre>
  
  <p>They are all working well, but after a while (sometimes hours or a day), one of the vitual server will break down, and I have to restart the container to make it work.</p>
  
  <p>I wonder is there any solution to automatically monitor the docker container and restart it when it goes down?</p>