Want to break free from Google Drive and Dropbox without drowning in server administration? This step-by-step guide walks you through deploying Nextcloud using Cloudron β€” a powerful server management platform that handles TLS certificates, automatic updates, and backups on your behalf, making self-hosted cloud storage genuinely practical to maintain long-term. By the end, you will have a fully operational, privately hosted Nextcloud instance running at your own domain, completely under your control.

Step 1: Prepare Your Server

Cloudron requires a clean Linux server with a public IP address. Start with a fresh installation rather than an existing server that already has Apache, Nginx, or another web server running β€” port conflicts will prevent Cloudron from installing correctly and are difficult to diagnose after the fact.

  • Recommended OS: Ubuntu 22.04 LTS. Cloudron officially supports this version, and it is the most thoroughly tested configuration.
  • Minimum hardware requirements:
    • 2 GB RAM (4 GB recommended if you plan to run multiple apps alongside Nextcloud)
    • 20 GB disk space for the OS and Cloudron itself β€” add significantly more depending on how much file storage you need in Nextcloud
    • Root SSH access to the server

    Open ports:

    Ensure ports 80 (HTTP), 443 (HTTPS), and 22 (SSH) are accessible through your server’s firewall or cloud security group. Cloudron uses port 80 for Let’s Encrypt certificate validation and port 443 for all encrypted web traffic.

    Tip: Popular VPS providers such as Hetzner, DigitalOcean, and Vultr all offer Ubuntu 22.04 images that work well with Cloudron out of the box.

    Step 2: Set DNS Records

    Cloudron requires a dedicated subdomain for its own management interface, and your self-hosted Nextcloud instance will need its own subdomain as well. Configure these at your DNS provider before running the installer β€” Cloudron will attempt to issue TLS certificates during installation, and that process requires DNS to already be resolving correctly.

    • Log in to your DNS provider and navigate to the DNS management section for your domain.
    • Add an A record for the Cloudron management interface pointing to your server’s public IP address. A common convention is my.example.com, but you can use any subdomain you prefer.
    • You can also add a second A record for your intended Nextcloud subdomain now (e.g., nextcloud.example.com) pointing to the same IP, or add it later in Step 5 when you install Nextcloud.

    DNS propagation can take anywhere from a few minutes to several hours depending on your provider. Verify that your records are resolving correctly by running dig my.example.com from a terminal or using an online DNS lookup tool before proceeding to the next step.

    Step 3: Install Cloudron

    Connect to your server via SSH as root or a user with sudo privileges, then run the following commands to download and execute the Cloudron installer:

    wget https://cloudron.io/cloudron-setup
    chmod +x ./cloudron-setup
    ./cloudron-setup

    The installer will prompt you for your domain name (the subdomain you created in Step 2, such as my.example.com). It will then automatically install Docker, configure the system, and request a TLS certificate from Let’s Encrypt. The entire process typically takes five to ten minutes. Do not close your SSH session while it is running.

    When the installer finishes, it will display your Cloudron admin URL. Open it in a browser to proceed to the initial setup wizard.

    Step 4: Configure Cloudron

    Open your Cloudron admin URL in a browser. You will be guided through the initial configuration wizard with the following key steps:

    1. Create your admin account. Use a strong, unique password β€” this account has full control over every app running on your server, so treat it like the keys to your house.
    2. Configure email settings (SMTP). Cloudron uses email to send app notifications, user invitations, and backup alerts. You can use a transactional email service such as Mailgun, SendGrid, or Amazon SES, or configure any SMTP server you have access to. Skipping this step means you will not receive critical system alerts, so it is strongly worth completing now.
    3. Review the Backups tab and configure a backup destination β€” either a local path or an S3-compatible storage bucket. Cloudron supports fully automated, scheduled backups of all installed apps, including their data and configuration files.

    Step 5: Install Nextcloud via Cloudron

    With Cloudron configured, installing your self-hosted Nextcloud instance takes only a few clicks β€” no manual Docker commands or database configuration required:

    1. Log into the Cloudron dashboard and click App Store in the navigation menu.
    2. Search for “Nextcloud” and select it from the results.
    3. Click Install. You will be prompted to enter the subdomain where Nextcloud should be hosted (e.g., nextcloud.example.com). Make sure this subdomain already has an A record pointing to your server, as described in Step 2.
    4. Cloudron will pull the Nextcloud container image, configure the database, set up the subdomain, and issue a TLS certificate automatically. Installation typically completes within two to three minutes.

    Step 6: Access and Configure Nextcloud

    Once installation is complete, navigate to your Nextcloud URL (e.g., https://nextcloud.example.com) and log in using the admin credentials that Cloudron generated during installation. You can find these credentials in the Cloudron dashboard under the Nextcloud app entry.

    From the Nextcloud admin panel, work through the following settings to get your private cloud storage instance ready for everyday use:

    • Add users β€” navigate to the user management section to create accounts for anyone who will be using this Nextcloud instance. You can assign individual storage quotas per user to keep disk usage under control.
    • Configure sharing settings β€” under Administration → Sharing, set your preferred defaults for public link sharing, password requirements, and link expiry dates.
    • Install Nextcloud apps β€” the built-in Nextcloud App Store (accessible from the admin menu) offers integrations for calendars (CalDAV), contacts (CardDAV), document collaboration (Nextcloud Office), two-factor authentication, end-to-end encryption, and much more. Install only what you need to keep the instance lean and easy to maintain.
    • Connect desktop and mobile clients β€” download the Nextcloud desktop sync client for Windows, macOS, or Linux, or the mobile app for iOS and Android. Point them to your Nextcloud URL and log in with your credentials to begin syncing files across all your devices immediately.

    Step 7: Ongoing Maintenance and Backups

    One of the biggest advantages of deploying Nextcloud through Cloudron is that routine maintenance is largely handled for you β€” no late-night server babysitting required. Here is what runs automatically:

    • Automatic updates β€” Cloudron monitors for new Nextcloud releases and can apply updates automatically or notify you when one is available, depending on your update policy setting in the dashboard. Updates are applied cleanly to the container without any manual intervention or SSH commands.
    • TLS certificate renewal β€” Let’s Encrypt certificates are renewed automatically by Cloudron well before they expire. No cron jobs, certbot commands, or manual renewal steps are required.
    • Automated backups β€” if you configured a backup destination in Step 4, Cloudron will back up your entire Nextcloud instance β€” including all files, the database, and app configuration β€” on the schedule you defined. Periodically verify that backups are completing successfully by checking the Backups tab in the Cloudron dashboard.
    • Monitoring β€” the Cloudron dashboard displays real-time status, resource usage, and last backup time for each installed app. Review it occasionally to catch any issues before they escalate into problems.

    Your self-hosted Nextcloud instance is ready. You now have a privately hosted, TLS-secured file storage and collaboration platform that is straightforward to maintain, automatically backed up, and accessible from any device using the official Nextcloud desktop and mobile clients. Your files stay on your server β€” not on someone else’s.