title: How do I keep a Docker container and a node application running on EC2?
body: <p>I would like to run a docker container and a separate node.js application on Amazon EC2 Ubuntu, and keep them running constantly. I had the node app running with <code>nohup</code> which worked fine, but I want to run both docker and the node app together so they both either work or fail at the same time. Also, they should automatically restart after a failure. (When I ran docker in screen, it failed after a while.) What is a simple way to accomplish this? I noticed tools such as <a href="http://supervisord.org/" rel="nofollow">Supervisor</a>, but I wasn't sure what tool was specifically for this purpose. </p>