Fig: use docker to create a containers’ stack
Fig is a fast, isolated development environments using Docker. For some features, it can be compared to Vagrant where the Dockerfike is not enough powerful to build multiple instances.
For example, let’s say you want to test a new product version of a software like MediaWiki and you want to build the complete stack. So you may need to have several tools categories (depending of the usage):
- Web: Nginx, PHP-FPM, Varnish
- App Cahing: Redis
- Search: ElasticSearch
In Vagrant you can natively build 3 VM and interconnect them without the need of additional tool. However Docker can only do very basic things with it’s dockerfile and that’s when Fig enter into action.
You can build a YAML Fig configuration with all your requested tools and configuration. Then you can use it as vagrant with “fig up” command. Another nice feature is the possibility to scale easily by adding new containers with “scale” option. Fig really give some missing features to Dockerfile even if more would be appreciated :-).
If you want to know more about Fig and what is possible, then look at the nice official website.