$ docker-compose up -d
And go to https://localhost
First, you need to create the instances ( 1 master & 2 slaves ) and fill in the hosts files with the IPs. Verify that you have Ansible Installed, and ssh established with the instances, and run :
$ ansible-playbook -i hosts main.yml
$ ansible-playbook -i hosts swarm/swarm-playbook/stack.yml
Note that the swarm cluster use Digital Ocean Block Storage to save data into volumes, using the rexray/dobs plugins, so we can scale the containers and restore the state of the application when one nodes goes down.
There are 5 volumes in total :
- mysql_data: For Mysql data
- redis_datan: For session data
- cache_data: For magento cache
- data: For magento source code
- cluster_data: For general cluster data