A demo video: create a web cluster by Docker swarm and publish it with HAProxy
Please see video for more detail.
In this video i show you steps to build cluster with Docker swarm and how to intergrate with HA Proxy:
Step 1: Deployment model with Docker Swarm (one manager node and one worker node). Using Virtual Box to create docker node;
Step 2: Building docker images on all of the node;
Step 3: Run cluster;
Step 4: Intergrate with HA Proxy
You can use Dockerfile and sample war file in this repo to practise