#!/bin/bash

apt-get -y install nginx

curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

cp lib/docker-gen/docker-gen /etc/nginx/docker-gen
cp lib/docker-gen/docker-gen-upstream-template /etc/nginx/docker-gen-upstream-template
cp lib/docker-gen/docker-gen-upstream-service /etc/nginx/docker-gen-upstream-service

cp lib/upstart/docker-upstreams.conf /etc/init/docker-upstreams.conf
initctl start docker-upstreams

#!/bin/bash

apt-get -y install nginx

curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

cp lib/docker-gen/docker-gen /etc/nginx/docker-gen
cp lib/docker-gen/docker-gen-upstream-template /etc/nginx/docker-gen-upstream-template
cp lib/docker-gen/docker-gen-upstream-service /etc/nginx/docker-gen-upstream-service

cp lib/upstart/docker-upstreams.conf /etc/init/docker-upstreams.conf
initctl start docker-upstreams

--- 
+++ 
@@ -2,7 +2,7 @@
 
 apt-get -y install nginx
 
-curl -L https://github.com/docker/compose/releases/download/1.2.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
+curl -L https://github.com/docker/compose/releases/download/1.3.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
 chmod +x /usr/local/bin/docker-compose
 
 cp lib/docker-gen/docker-gen /etc/nginx/docker-gen
Set docker-compose installation to version 1.3.1
