Check out the post.
-
Fork/Clone
-
Add the token to your environment:
$ export DIGITAL_OCEAN_ACCESS_TOKEN=[your_token]
-
Spin up three droplets and deploy Docker Swarm:
$ sh scripts/create.sh
-
Run the script:
$ sh scripts/run.sh
-
Bring down the resources:
$ sh scripts/destroy.sh