Add VIRTUAL_GROUP container filtering and update docs
Unlike PR #343, this PR adds a simpler mechanism to optionally create proxy-container groupings. It is uncertain whether the aforementioned PR was rejected due to its age, complexity, or perceived lack of added-value. It is my hope that this PR is found more suitable for inclusion to the code base.
While the ability to limit proxy-container interaction has general uses (#340), its importance is realized when operating in secured and/or controlled environments, setting limits on a proxy's configuration to only include those containers it needs to know about; especially, when multiple instances are run on the same Docker host.
This feature is especially important for defense contractors for which I design internal infrastructures to compartmentalize information and services for specific purposes. On December 30, 2015, the U.S. Department of Defense announced a change to the Defense Federal Acquistion Regulation Supplement (DFARS.204-7012), requiring all defense contractors to implement requirements stipulated in NIST Special Publication 800-171. Protecting Controlled Unclassified Information in Nonfederal Information Systems and Organizations by December 31, 2017.
In short, it all boils down to best practices that ensure information resources are only configured and provide services for their intended purpose and nothing more. A solution over nginx-proxy would be to deploy vanilla Nginx servers with static configurations. However, my preference would be to use nginx-proxy, as we use it in conjunction with letsencrypt-nginx-proxy-companion that communicates with an internal HSM to generate individual short-term site certificates. Furthermore, the dynamic nature of nginx-proxy provides better incident management should services have to be brought down and others spun up quickly.
@jwilder, this looks good to me. Could it be merged? I created something similar myself (calling it "scopes") and only then discovered that it already exists.