Set Up Your Own Cloud Instance with DigitalOcean & Custom
Set up your own cloud instance with DigitalOcean & domain in just a few minutes Minutes reading time remaining By Antonio Blago February 1, 2025
Tutorial
Why have your own cloud instance?
Having your own cloud instance gives you full control over your applications, whether it's a web server, an n8n automation, or a Docker host. You also don't have to pay per transaction or workflow, but only for the general server usage. So you save a lot of money. 5€ for your own instance vs. 25€ for the smallest package hosted on n8n. With DigitalOcean, you can set up a powerful and cost-effective instance in just a few minutes – including your own domain and subdomain. Get $200 credit via this link: DigitalOcean *
1. Buy a domain & prepare DNS
Buy a domain
& prepare DNS Before we start the cloud instance, we need a domain so we can reach our server via a readable address instead of an IP. If you already have a domain, you can skip this step. Buy a domain Register a domain with a provider such as: IONOS: Register domains at Ionos here GoDaddy: Go to GoDaddy here
Set up subdomain & set A record
After purchase, you can set up a subdomain that points to your DigitalOcean server: Go to the DNS management of your domain provider. Create an A record : Host: n8n (or another subdomain) Type: A Value: YOUR_DIGITALOCEAN_IPv4_ADDRESS If you want to support IPv6: Type: AAAA Value: YOUR_DIGITALOCEAN_IPv6_ADDRESS Wait a few minutes until DNS propagation is complete (can take up to 24 hours, but usually faster).
2. Create DigitalOcean Droplet
Now we set up the actual cloud instance (Droplet).
Create a new Droplet
Go to DigitalOcean * (You get $200 credit via this link) Create a new Droplet : Select Ubuntu 22.04 LTS as the operating system Choose a size (5 USD/month is enough for simple projects) Select the Frankfurt data center for EU proximity Add your SSH key or create a root password Start the Droplet and copy the IP address Follow the instructions, enter subdomain, domain, and IPv4 address Wait for installation and then you can access https://
3. Test server access & domain connection
Once your Droplet is created, you can connect via SSH: ssh root@YOUR-DOMAIN.de If that doesn't work, test the connection to the direct IP: ssh root@YOUR_DIGITALOCEAN_IP If both work, your server is successfully linked to your domain!
4. Enable automatic backups (recommended)
To avoid data loss, you should enable automatic backups: Go to the DigitalOcean Droplet settings . Enable the backup function (created weekly). Alternatively, you can create your own backups with rsync or scp : rsync -avz /important-directory youruser@backup-server:/backup/
5. Set up monitoring & logs
For long-term monitoring, you should use a logging and monitoring tool: htop for system load: sudo apt install htop -y htop Fail2Ban against brute-force attacks: sudo apt install fail2ban -y sudo systemctl enable --now fail2ban Set up UFW (Uncomplicated Firewall): sudo ufw allow OpenSSH sudo ufw enable
Conclusion
In just a few steps, you have set up a complete cloud instance with your own domain and subdomain on DigitalOcean *. Your server is now ready for web applications, automations, or your own projects!
Indexing Checker for Google Search Console
Save more than 2 hours per week Guide: [...]
Use my SEO roadmap to get to page 1 on Google!
Sign up for my newsletter and get access to free guides, checklists, and tools.