by Mastodon


OS Ubuntu 18.04

Create Mastodon Droplet


Mastodon allows you to host your own social media platform on your own infrastructure. Using a suite of standard protocols, Mastodon servers can exchange information with each other, allowing users to interact seamlessly.

Software Included

Postgres10Postgres SQL
Certbot0.31.0Apache 2

Getting started after deploying Mastodon

On your first SSH login to the droplet, you will be greeted by a setup wizard that will create a working Mastodon server. Going in, you need to be prepared to enter the following information:

  • Domain name (the DNS records should already point to the droplet)
  • SMTP credentials for sending e-mails (this can be SparkPost, Sendgrid, Mailgun, etc)
  • Optional: Amazon S3 credentials for storing user-uploaded files (this can also be Wasabi or Minio)

API Creation

In addition to creating a Droplet from the Mastodon 1-Click App via the control panel, you can also use the DigitalOcean API.

As an example, to create a 4GB Mastodon Droplet in the SFO2 region, you can use the following curl command. You’ll need to either save your API access token to an environment variable or substitute it into the command below.

  curl -X POST -H 'Content-Type: application/json' \
       -H 'Authorization: Bearer '$TOKEN'' -d \
      '{"name":"choose_a_name","region":"sfo2","size":"s-2vcpu-4gb","image":"mastodon-18-04"}' \

Support Details

Supported By:Mastodon
Support URL:

Learn More

Product Docs

Technical overviews, how-tos, release notes, and support material


DevOps and development guidelines

API Docs

Run your resources programmatically

Ask a question

Connect, share and learn