A capistrano extension used to deploy Docker containers to a remote host using Fig.
The following borrows heavily from approach used on the following blog:
https://blog.docker.com/2014/08/orchestrating-docker-containers-in-production-using-fig
Note: We assume you already know how to setup Capistrano on a project and have deployed with it before.
- Don't recompile containers on rollback.
- Find a smoother way to deploy instead of killing previous container (small amount of downtime).
Install the gem:
gem install capistrano-fig
Add the following line to your Capfile:
require 'capistrano-fig'
ALL DONE!
An example of this in action can be found here (Im using this for the new interation of my portfolio site):