DigitalOcean
beginner
15-20 minutes

DigitalOcean Account Setup

Create your DigitalOcean account, understand the control panel, set up billing, and get started with credits.

What you'll accomplish

A configured DigitalOcean account with billing set up and team access

Prerequisites

  • Email address
  • Credit card or PayPal

Before You Start: What Are You Deploying?

This track teaches DigitalOcean deployment. Before diving in, consider what you're deploying:

Deploying a frontend/static site? Simpler platforms like Vercel may be all you need.

Deploying a complete SaaS product? You'll also need:

  • User authentication and sessions
  • Subscription billing (Stripe integration)
  • Transactional email and notifications
  • Multi-tenant data architecture

Your options for the backend:

  1. Build it yourself — this track + our SaaS Starter template
  2. Use a backend platform — services like StackForDevs provide auth, billing, and notifications as APIs, so you only deploy your frontend

This track focuses on deployment infrastructure. Make sure you know what you're deploying before proceeding.


What is DigitalOcean?

DigitalOcean is a cloud provider focused on simplicity and developer experience:

  • App Platform - Managed PaaS (our recommended path)
  • Droplets - Virtual machines
  • Kubernetes - Managed K8s clusters
  • Managed Databases - PostgreSQL, MySQL, Redis
  • Spaces - Object storage (S3-compatible)
Your Application
      ↓
DigitalOcean Cloud
      ↓
15 Global Datacenter Regions

Why Choose DigitalOcean?

StrengthDescription
Simple pricingPredictable, no surprise bills
Developer-focusedClean UI, great docs
App PlatformEasy deployments from Git
TutorialsExtensive learning resources
Fair pricing$4/month for basic Droplet

DigitalOcean vs Other Clouds

FeatureDigitalOceanAWSAzureGCP
ComplexityLowHighMediumMedium
Free tier$200 credit12 months$200 + 12mo$300
PricingPredictableComplexComplexComplex
Services~50200+200+100+
Best forSMB, developersEnterpriseEnterpriseData/ML

Step 1: Create Your Account

1.1 Sign Up

  1. Go to digitalocean.com
  2. Click Sign Up
  3. Choose sign-up method:
    • Email and password
    • Google account
    • GitHub account (recommended for developers)

1.2 Verify Email

Check your email for verification link and click to confirm.

1.3 Add Payment Method

DigitalOcean requires a payment method:

  • Credit card
  • PayPal
  • Google Pay
Note

New accounts get $200 credit for 60 days to try any DigitalOcean service. You won't be charged until you exceed the credit.

Step 2: Navigate the Control Panel

2.1 The Dashboard

After login, you'll see the control panel at cloud.digitalocean.com.

┌────────────────────────────────────────────────────────────────┐
│ ≡ DigitalOcean    [Create ▼]           ? Settings [avatar]    │
├──────────────┬─────────────────────────────────────────────────┤
│ Dashboard    │                                                 │
│ Droplets     │     Welcome to DigitalOcean                    │
│ Kubernetes   │                                                 │
│ App Platform │     [Quick Actions]                            │
│ Databases    │     - Create Droplet                           │
│ Spaces       │     - Create App                               │
│ Functions    │     - Create Database                          │
│ Networking   │                                                 │
│ Monitoring   │     [Getting Started Guide]                    │
│ API          │                                                 │
│ Billing      │                                                 │
└──────────────┴─────────────────────────────────────────────────┘

2.2 Key Sections

SectionWhat It's For
DropletsVirtual machines
App PlatformManaged app deployments
KubernetesContainer orchestration
DatabasesManaged PostgreSQL, MySQL, Redis, MongoDB
SpacesObject storage (like S3)
FunctionsServerless functions
NetworkingVPCs, load balancers, domains
MonitoringAlerts and metrics

2.3 Projects

Organize resources into projects:

  1. Click + New Project in sidebar
  2. Name your project (e.g., "Production", "Development")
  3. Add description and purpose
  4. Move resources between projects as needed

Step 3: Set Up Billing Alerts

3.1 View Billing

  1. Click Billing in left sidebar
  2. See current balance and usage
  3. View billing history

3.2 Set Up Alerts

  1. Go to Settings → Billing Alerts
  2. Click Add Alert
  3. Configure:
    • Alert type: Monthly spend
    • Threshold: $25 (or your budget)
    • Email: Your notification email
  4. Click Create

3.3 Spending Limits

Unlike other clouds, DigitalOcean has simpler billing:

  • No auto-scaling surprises
  • Resources bill monthly
  • Prorated for partial months
  • $200 credit applies automatically

Step 4: Create Your First Project

Projects help organize related resources:

  1. Click + New Project
  2. Configure:
    • Name: myapp-production
    • Description: "Production environment"
    • Purpose: Web Application
  3. Click Create Project

Project Best Practices

Organization
├── Project: Development
│   ├── dev-droplet
│   └── dev-database
├── Project: Staging
│   ├── staging-app
│   └── staging-database
└── Project: Production
    ├── production-app
    └── production-database

Step 5: Understand Regions

DigitalOcean has 15 datacenter regions:

Available Regions

RegionLocationSlug
NYC1, NYC2, NYC3New Yorknyc1, nyc2, nyc3
SFO2, SFO3San Franciscosfo2, sfo3
TOR1Torontotor1
LON1Londonlon1
AMS3Amsterdamams3
FRA1Frankfurtfra1
BLR1Bangaloreblr1
SGP1Singaporesgp1
SYD1Sydneysyd1

Choosing a Region

  • Latency: Choose closest to your users
  • Compliance: Data residency requirements
  • Features: Most features available in NYC and SFO
  • Pricing: Same across all regions

Step 6: Set Up SSH Keys

SSH keys provide secure access to Droplets.

Generate SSH Key

Add to DigitalOcean

  1. Go to Settings → Security
  2. Click Add SSH Key
  3. Paste your public key
  4. Name it (e.g., "My Laptop")
  5. Click Add SSH Key

Step 7: Create API Token

For CLI and automation access:

  1. Go to API in left sidebar
  2. Click Generate New Token
  3. Configure:
    • Name: "My CLI"
    • Expiration: Choose timeframe
    • Scopes: Read and Write
  4. Click Generate Token
  5. Copy and save the token - it won't be shown again!
Note

Keep your API token secure. Never commit it to Git or share it publicly. Store it in environment variables or a password manager.

Step 8: Team Access (Optional)

Add Team Members

  1. Go to Settings → Team
  2. Click Invite Member
  3. Enter email address
  4. Select role:
    • Owner: Full access
    • Billing: Billing only
    • Custom: Select specific permissions
  5. Send invitation

Available Permissions

PermissionDescription
DropletCreate/manage VMs
AppCreate/manage App Platform apps
DatabaseCreate/manage databases
SpacesCreate/manage object storage
NetworkManage networking resources
BillingAccess billing information

Free Credits and Referrals

$200 Free Credit

New accounts receive:

  • $200 credit
  • Valid for 60 days
  • Applies to all services
  • Real production use allowed

Referral Program

  • Refer others for $200 credit each
  • You get $25 credit per referral
  • Find your referral link in Account → Referrals

Common Pricing

ServicePrice
Droplet (Basic)$4/month (1 vCPU, 512MB)
Droplet (Regular)$6/month (1 vCPU, 1GB)
App Platform (Basic)$5/month (512MB)
App Platform (Pro)$12/month (1GB)
Managed Database$15/month (PostgreSQL)
Spaces$5/month (250GB + CDN)
Load Balancer$12/month
Note

DigitalOcean's pricing is simple: what you see is what you pay. No hidden data transfer costs for most use cases (first 1TB/month is free).

Verify Your Setup

  • Account created and verified
  • Payment method added
  • $200 credit visible in billing
  • Billing alert configured
  • First project created
  • SSH key added
  • API token generated and saved
Note

Checkpoint: Log into the DigitalOcean control panel, verify your billing shows the $200 credit, and confirm your SSH key is added.