DigitalOcean Tutorial
Learn DigitalOcean step by step: 35 lessons in 9 chapters with examples, quizzes, diagrams and projects.
Start learning →
of lessons completed
Getting Started
- What Is DigitalOcean? Products, Regions and When to Use It Meet DigitalOcean: Droplets, managed databases, Spaces, App Platform, Kubernetes and more. Learn how the pieces fit together and when a simple cloud is the right choice.
- DigitalOcean Account, Projects, Teams and Billing Basics Set up a DigitalOcean account safely: two-factor login, teams and roles, projects and environments, tags, resource URNs and billing alerts that prevent surprise invoices.
- Your First Droplet Step by Step: Create, Connect and Secure Create a DigitalOcean Droplet, choose region, image and size, add an SSH key, connect, update Ubuntu, add a non-root user and enable the firewall. Includes the API payload.
- doctl and the DigitalOcean API: Tokens, Calls and Pagination Automate DigitalOcean from the terminal: install doctl, authenticate with a scoped token, list and create resources, call the REST API with curl, paginate and respect rate limits.
Droplets and Networking
- Droplet Sizes, Plans and Pricing: Choosing the Right CPU and RAM Understand Droplet plan families (Basic, General Purpose, CPU-Optimized, Memory-Optimized, Storage-Optimized), size slugs, bandwidth and billing, and learn how to right-size a server.
- SSH Keys and Secure Access to Droplets Generate an Ed25519 SSH key, add it to DigitalOcean, understand fingerprints, use ssh-agent and config files, rotate keys, and harden sshd with no root and no passwords.
- Cloud-init and User Data: Automate Your Droplet's First Boot Use cloud-init user data to configure a new Droplet automatically: packages, users, SSH keys, files and commands. Includes a full cloud-config example, debugging tips and a linter.
- VPC and Private Networking on DigitalOcean Learn how DigitalOcean VPC networks isolate resources per region, how private IPs work, how to plan CIDR ranges, peer VPCs, and keep databases off the public internet.
- DigitalOcean Cloud Firewalls: Rules, Tags and Best Practices Protect Droplets with free, stateful Cloud Firewalls: inbound and outbound rules, tag-based targeting, source types, doctl examples and a rule evaluator to test your design.
- Reserved IPs and DNS on DigitalOcean: Domains, Records and Failover Point a domain at a Droplet with DigitalOcean DNS, learn A, AAAA, CNAME, MX and TXT records and TTLs, and use a Reserved IP to move a public address between Droplets for failover.
Storage and Databases
- DigitalOcean Volumes: Block Storage for Droplets Add extra disk space to a Droplet with Volumes block storage: create, attach, format, mount permanently with fstab, resize, snapshot and move data between servers safely.
- Spaces: S3-Compatible Object Storage on DigitalOcean Store files in DigitalOcean Spaces: buckets, access keys, endpoints, public and private objects, presigned URLs, CDN, CORS and lifecycle rules, with boto3 and rclone examples.
- Snapshots and Backups on DigitalOcean: Restore Points That Work Compare Droplet backups, snapshots, Volume snapshots and database backups, plan retention and the 3-2-1 rule, restore safely, and test recovery before you need it.
- DigitalOcean Managed Databases: PostgreSQL, MySQL, Valkey and More Run PostgreSQL, MySQL, Valkey, MongoDB, Kafka or OpenSearch as a managed service: clusters, standby nodes, trusted sources, private hostnames, TLS connection strings and connection pools.
App Platform and Functions
- App Platform: Deploy Apps on DigitalOcean Without Managing Servers Learn how App Platform builds and runs your code: components, buildpacks and Dockerfiles, deploy on push, HTTPS and domains, scaling, pricing model and when to choose it over Droplets.
- The App Platform App Spec: Configure Your App as YAML Write a DigitalOcean App Platform app spec: services, static sites, source, build and run commands, ports, routes, health checks, environment variables, secrets, and doctl deploy commands.
- App Platform Workers, Jobs, Cron Schedules and Environments Run background work on App Platform: workers, pre-deploy migrations, post-deploy jobs, scheduled cron jobs, logs, alerts, rollbacks, and staging versus production apps.
- DigitalOcean Functions: Serverless Code Without Servers Write and deploy serverless functions on DigitalOcean: namespaces, packages, the main entry point, web and scheduled triggers, doctl serverless, limits, cold starts and billing in GiB-seconds.
Kubernetes
- DigitalOcean Kubernetes: Clusters and Node Pools Learn how DigitalOcean Kubernetes (DOKS) clusters work: the managed control plane, node pools, doctl commands, kubeconfig and how pods fit onto nodes.
- Deployments and Services on DigitalOcean Kubernetes Deploy an app to DigitalOcean Kubernetes with Deployments, Services and a DigitalOcean Load Balancer, from the manifest to the public IP, with labels and probes.
- Ingress and Persistent Storage on DOKS Route many hostnames through one DigitalOcean Load Balancer with an Ingress, and keep data safe with PersistentVolumeClaims backed by DigitalOcean Block Storage.
- Scaling and Upgrading DigitalOcean Kubernetes Scale a DOKS cluster at two levels: pods with the Horizontal Pod Autoscaler and nodes with node pool autoscaling, then upgrade Kubernetes safely with surge upgrades.
Load Balancers and Security
- DigitalOcean Load Balancers Spread traffic across Droplets with a DigitalOcean Load Balancer: forwarding rules, round robin and least connections, health checks, sticky sessions and TLS.
- SSH Hardening and Access Control on DigitalOcean Secure a new Droplet: SSH keys, a non-root sudo user, sshd settings, ufw, fail2ban, automatic updates, API token scopes and two-factor authentication.
- TLS Certificates and Let's Encrypt on DigitalOcean Add HTTPS to a DigitalOcean app: Let's Encrypt with certbot on a Droplet, free managed certificates on a Load Balancer, DNS challenges, renewal and expiry checks.
Automation and Terraform
- The doctl Command Line for DigitalOcean Manage DigitalOcean from the terminal with doctl: authentication contexts, droplet, volume, firewall and domain commands, JSON output, format columns and scripting tips.
- The DigitalOcean REST API and Automation Call the DigitalOcean API v2 directly: bearer tokens, JSON requests, pagination links, rate limits with backoff, actions and a safe pattern for automation scripts.
- Terraform on DigitalOcean Describe DigitalOcean infrastructure as code with Terraform: the provider, VPC, Droplet, firewall and Load Balancer resources, variables, state in Spaces and plan and apply.
- cloud-init and Droplet User Data Configure Droplets automatically on first boot with cloud-init: user data, #cloud-config, packages, users, write_files, runcmd, logs and debugging.
Operations and Cost
- Monitoring and Alerts on DigitalOcean Watch your Droplets with DigitalOcean Monitoring: the metrics agent, CPU, memory, disk and bandwidth graphs, alert policies, uptime checks and what to alert on.
- Backups, Snapshots and Recovery on DigitalOcean Plan recovery on DigitalOcean: automatic Droplet backups, manual snapshots, volume snapshots, managed database backups, off-site copies, RPO, RTO and restore drills.
- Pricing and Cost Control on DigitalOcean Understand and control your DigitalOcean bill: hourly billing with a monthly cap, what keeps costing when stopped, bandwidth, tags and projects, billing alerts and right-sizing.
Projects and Practice
- Project: Deploy a Web App on a Droplet A step-by-step project: create a Droplet, harden it, run an app with systemd behind Nginx, add HTTPS, monitoring and a backup, with checklist and config generators.
- Project: A Three-Tier Architecture on DigitalOcean Design a scalable three-tier setup on DigitalOcean: a VPC, Load Balancer, web Droplets, a managed database, firewalls by tag, a cost estimate and an architecture checker.
- Practice: Troubleshooting DigitalOcean Setups Practise diagnosing common DigitalOcean problems: cannot connect, 502 errors, failing health checks, full disks, cost surprises, with a diagnosis tool and a command cheat sheet.