Intro to Docker and clustering with Rancher from scratch
- Aids in setup of Docker + Rancher on Digital Ocean with Terraform.
- Also contains a variety of different language API examples that demonstrate how the Rancher/HAProxy load balancer works:
- Install terraform
- Make sure you have a
~/.ssh/id_rsa. If you don't run
ssh-keygenwith default options from
- To create your VMs, from
./ansible/inventory.inifor the IPs of your new VMs
- Install ansible
- Visit http://IP_OF_YOUR_DOCKER_0_BOX:8080/ Infrastructure > Add Hosts
ansible all -u root -a "COMMAND_RANCHER_GIVES_YOU"
You should now have a 4 node Rancher + Cattle + Docker cluster going that you can run containers on