Deploying to DigitalOcean

Learn how you can deploy your application to DigitalOcean.

DigitalOcean

We can also create a Docker swarm on DigitalOcean. The prices are very modest: $0.007 per hour for the smallest, standard Droplet (their term for an instance). In real terms, a three-node cluster running for 48 hours will cost $1.

To follow along, you will need your own DigitalOcean account. Go to the DigitalOcean homepage, and complete the sign-up form. You will need to enter your credit card details since there is a charge for using their cloud resources.

Once you have created an account, you will need to generate an API token so that you can set up infrastructure from the command line. Log in and navigate to the API tokens page and press the “Generate New Token” button. Give your token a name (for example, docker-for-rails-developers) with read/write access and then copy the generated token.

Get hands-on with 1200+ tech skills courses.