{"id":1185,"date":"2016-03-07T16:25:42","date_gmt":"2016-03-07T08:25:42","guid":{"rendered":"http:\/\/magicalbits.net\/?p=1185"},"modified":"2016-03-07T16:25:42","modified_gmt":"2016-03-07T08:25:42","slug":"a-sample-docker-workflow-with-nginx-node-js-and-redis-%c2%b7-anand-mani-sankar","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=1185","title":{"rendered":"A sample Docker workflow with Nginx, Node.js and Redis \u00b7 Anand Mani Sankar"},"content":{"rendered":"<blockquote><p><a href=\"http:\/\/anandmanisankar.com\/posts\/docker-container-nginx-node-redis-example\/\"><img decoding=\"async\" class=\"alignnone size-full\" src=\"http:\/\/magicalbits.net\/wp-content\/uploads\/2016\/03\/DockerSample.png\" alt=\"\" \/><\/a>For this example, I have a very simple Node.js applications that increments a counter stored on Redis. I want to run Redis and the node application independently as I want to have the ability to scale the node application depending on the load. To start off, I have 3 instances of the node server running the application. I have an Nginx server in front of node for load balancing the node instances.<\/p><\/blockquote>\n<p>Source: <em><a href=\"http:\/\/anandmanisankar.com\/posts\/docker-container-nginx-node-redis-example\/\">A sample Docker workflow with Nginx, Node.js and Redis \u00b7 Anand Mani Sankar<\/a><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For this example, I have a very simple Node.js applications that increments a counter stored on Redis. I want to run Redis and the node application independently as I want to have the ability to scale the node application depending on the load. To start off, I have 3 instances of the node server running [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1185","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/1185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1185"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/1185\/revisions"}],"predecessor-version":[{"id":1187,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/1185\/revisions\/1187"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}