- Launch a new EC2 instance
- Add TCP/2377 to security group
- Install docker on the instance
- Command
- docker swarm init --advertise-addr [EC2 instance private IP]:2377 --listen-addr [EC2 instance private IP]:2377
- Launch a new EC2 instance
- Add TCP/2377 to security group
- Install docker on the instance
- Execute command in initial manager node to get manager token
- docker swarm join-token manager
- Execute manager token in current node
- Launch a new EC2 instance
- Add TCP/2377 to security group
- Install docker on the instance
- Execute command in initial manager node to get worker token
- docker swarm join-token worker
- Execute worker token in current node