A microservices demo using Zeit's micro
First we will need to install micro in our Node installation as a global package
$ npm install -g micro
$ micro name-of-microservice.js
$ curl -F "file=@./image.jpg" http://localhost:3000/
$ curl -X POST -d "{\"image\": \"xxxxxx-xxxx-xxxx-xxxx-xxxxxx.jpg\", \"filter\": \"sepia\"}" http://localhost:3000/
$ docker build upload -t micro-upload
$ docker build preview -t micro-preview
$ docker build save -t micro-save
$ docker build nginx -t micro-nginx
or run
$ ./build-images.sh
$ docker-compose up -d