Blue-Green Deployment with Apache and Docker

In a blue-green deployment strategy, there are always two instances of your application running in production. A reverse proxy is used to direct traffic to either the green or the blue version. You then deploy changes to your application by first updating the inactive version and then changing the load balancer config to redirect traffic to the updated instance.

In this video, I will show you how to set up a very simple version of such a blue-green deployment using just Apache, Docker and CentOS 8.