mkdir -p /var/www/sgsrv/dev
cd /var/www/sgsrv/dev
wget https://cmc-dl.futuredial.com/tools/smartgrade-server/dev/sgsrv_web.tar
docker load -i sgsrv_web.tar

cat >/var/www/sgsrv/start_web.sh <<EOF
docker run --rm \
    -p 80:8081 \
    --name sgsrv \
    --link=sgsrv_db:mongo \
    -v /var/www/sgsrv/config/:/var/www/config \
    -v /var/www/sgsrv/log/:/var/www/log \
    docker.futuredial.com/sgsrv_web:dev
EOF
chmod +x /var/www/sgsrv/start_web.sh

supervisorctl reload