Skip to content

Nextcloud: your own cloud, step by step

Section 1 of 8
Size 3 of 5

Cloud and tools07/08

Nextcloud: your own cloud, step by step

Nextcloud step by step: files, calendar, contacts and Office on your server, storage sizing, install with a domain and HTTPS, apps, 2FA and backups.

Abdulwahed MohammadContent writer at tech+11 min read

An architecture office in Baghdad keeps its drawings in a shared Google Drive, its appointments in personal phone calendars and its client contacts in three different phones. Every new engineer means another account to buy, and every file lives on a server abroad under someone else’s terms. Nextcloud brings all of that onto one server you control: files that sync to every computer and phone, a shared calendar, a single address book and documents you edit in the browser. This guide explains what Nextcloud offers, how to size the server and its storage, how to install it step by step with a domain and HTTPS, how to connect the desktop and mobile apps, and how to secure it and back it up.

01What Nextcloud offers

Nextcloud is an open-source platform you install on your own server. Its core is file storage, and around it sit apps you turn on as you need them:

  • Files: Upload, sync and share. Each person’s folders sync to their computer and phone, and you share a folder with colleagues or send a public link protected by a password and an expiry date. Earlier versions of every file are kept, so a bad save can be undone.
  • Calendar: Personal and shared calendars, meeting invitations and room booking, synced to phones and computers over .
  • Contacts: One address book for the team, synced over CardDAV to the phone’s own contacts app.
  • Nextcloud Office: Edit Word, Excel and PowerPoint files in the browser, several people at once, without the files leaving your server.
  • Talk: Chat, voice and video calls between your team, inside the same platform.
  • Smaller helpers: Deck for task boards, Notes, Forms and many more apps from the Nextcloud app store.
Google Drive and WorkspaceYour own Nextcloud
Where files liveGoogle’s data centresYour server
CostPer user per monthOne server price, however many users
Storage limitSet by the planThe size of your disk
Document editingGoogle DocsNextcloud Office
Who runs updates and backupsGoogleYou

That last row is the honest trade-off: with Nextcloud you gain control and lose the provider who looks after it. The rest of this guide is about doing that looking-after well.

02Sizing storage and memory

Start from the data you already have. Count what each person keeps in their shared drive and on their desktop today, and add the shared folders. Then add three things people forget:

  • File versions: Nextcloud keeps earlier versions of each file, thinned out over time, and the versions app never uses more than 50% of a user’s currently available free space. Plan for versions to take a real share of the disk.
  • The trash bin: Deleted files stay in the trash until it is emptied or they age out, and they still take space.
  • Growth: Estimate a year ahead, not a month. Drawings, photos and video grow faster than spreadsheets.

The Baghdad office has 8 engineers with about 15 GB each and 40 GB of shared projects, so 160 GB today. With versions, the trash and a year’s growth, it should plan on 250 to 300 GB of disk. A team of three that shares documents and spreadsheets may need 30 GB for a long time.

Memory depends more on what you turn on than on how many files you store. Nextcloud’s documentation recommends at least 512 MB of memory per PHP process, and the server also runs a database, a cache and the system. Our estimates for a small team:

SetupMemoryCores
Files, calendar and contacts for up to about 10 people2 GB2
The same, with Nextcloud Office4 GB3
Office and Talk with video calls, or 20+ active users8 GB4

03Install Nextcloud with All-in-One

There are several ways to install Nextcloud, and the one its developers recommend for most people is : one Docker container that sets up and manages the rest for you, including Nextcloud itself, PostgreSQL, Redis, the HTTPS certificate, optional Office and Talk, updates and backups. These steps work on Ubuntu 24.04, Debian 12 and AlmaLinux 9.

Before you start, point a subdomain at the server with an A record, such as cloud.handasa-baghdad.com, and wait for it to resolve. All-in-One will not run Nextcloud on a bare IP address. Then install Docker Engine from Docker’s own repository; Nextcloud warns against the snap version of Docker on Ubuntu:

Installing Docker Engine from Docker’s repository
# Ubuntu (on Debian, replace ubuntu with debian in both URLs)sudo apt update && sudo apt install -y ca-certificates curlsudo install -m 0755 -d /etc/apt/keyringssudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.ascsudo chmod a+r /etc/apt/keyrings/docker.ascsudo tee /etc/apt/sources.list.d/docker.sources <<EOFTypes: debURIs: https://download.docker.com/linux/ubuntuSuites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")Components: stableArchitectures: $(dpkg --print-architecture)Signed-By: /etc/apt/keyrings/docker.ascEOFsudo apt updatesudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin# AlmaLinux 9sudo dnf -y install dnf-plugins-coresudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.reposudo dnf -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginsudo systemctl enable --now docker

Then start the All-in-One master container with the command from Nextcloud’s documentation:

Starting the Nextcloud All-in-One master container
sudo docker run \  --init \  --sig-proxy=false \  --name nextcloud-aio-mastercontainer \  --restart always \  --publish 80:80 \  --publish 8080:8080 \  --publish 8443:8443 \  --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config \  --volume /var/run/docker.sock:/var/run/docker.sock:ro \  ghcr.io/nextcloud-releases/all-in-one:latest

Now follow the setup in your browser:

  • Open the AIO interface by IP address: Go to https:// followed by the server’s IP address and :8080, and accept the self-signed certificate warning. Nextcloud asks you to use the IP address here, not the domain, to avoid certificate problems later.
  • Save the passphrase: The interface shows a long passphrase that guards the whole installation. Store it in your password manager before you go on.
  • Enter your domain: Type cloud.handasa-baghdad.com. All-in-One checks that the domain points to this server and that the ports are reachable.
  • Choose the optional parts: Tick Nextcloud Office, Talk, ClamAV antivirus or full-text search only if the server has the memory for them. You can add them later.
  • Start the containers: All-in-One downloads and starts everything, obtains the certificate and shows the first administrator’s user name and password. Write them down, then sign in to your new cloud.

If you want the files on a separate, larger disk, add --env NEXTCLOUD_DATADIR="/mnt/ncdata" to the command before the image name. Do it at the first install only: All-in-One says this value must not change once Nextcloud is installed.

04The domain, HTTPS and ports

All-in-One gets and renews the HTTPS certificate for your domain on its own, using port 80 for the check. For that to work, these ports must be reachable from the internet:

PortWhat uses it
80/TCPThe certificate check, and the AIO interface’s redirect
443/TCP and UDPNextcloud itself; UDP only for HTTP/3
8080/TCPThe AIO admin interface, with a self-signed certificate
8443/TCPThe AIO admin interface on your domain, with a valid certificate
3478/TCP and UDPTalk’s TURN server, only if you turn Talk on

If the server has a firewall, open these ports and SSH, and nothing else. Keep the AIO passphrase as safe as the root password: whoever holds it controls every container, the backups and the updates.

05Desktop and mobile apps

A cloud is only useful if it is where people already work. Nextcloud has official apps for each device:

  • The desktop client: For Windows 10 and later, macOS 12 and later, and 64-bit Linux as an AppImage. It syncs chosen folders to the computer, and with virtual files it shows every file without downloading it until it is opened, which saves disk space on laptops.
  • The Files app on phones: For iOS 17 and later and Android 9 and later. It browses and shares files and can upload new photos automatically, which makes it a natural replacement for a phone’s cloud photo backup.
  • Calendar and contacts on iPhone: Add a CalDAV account and a CardDAV account in the phone’s settings with your Nextcloud address, so events and contacts appear in the phone’s own apps.
  • Calendar and contacts on Android: Use a CalDAV and CardDAV sync app such as DAVx⁵, which Nextcloud’s own guides point to, then the phone’s calendar and contacts apps show them.
  • Email programs: Thunderbird reads CalDAV and CardDAV directly, so calendars and contacts appear beside your mail.

06Security and two-factor sign-in

Your Nextcloud holds the office’s contracts, drawings and client details, so a stolen password is the risk to plan against first. closes that door:

  • Turn on TOTP: Enable the Two-Factor TOTP Provider app from the apps page. Each user then links an authenticator app on their phone, and Nextcloud generates ten single-use backup codes for the day the phone is lost.
  • Enforce it: In Administration settings, under Security, enforce two-factor sign-in for everyone or for chosen groups, so no account can skip it.
  • Share carefully: Give public links a password and an expiry date, and share with named colleagues inside Nextcloud instead whenever you can.
  • Keep the apps you use: Every app is more code on your server. Disable the ones nobody needs.
  • Update on time: All-in-One shows available updates in its interface and notifies the administrators every day. Take a backup, then update.

Nextcloud also slows down repeated failed logins from the same address on its own, which blunts password-guessing attacks. And on a server you control, server-side encryption is usually not needed: it adds load and makes recovery harder, and losing its keys means losing the files. Protect the server, the passwords and the backups instead.

07Backups you can restore

All-in-One includes a backup system built on . From its interface you choose where the backups go, then create a backup, check its integrity and restore it, and you can turn on a daily automatic backup. Each backup is encrypted with a password that All-in-One shows you when you set up backups; keep it with the AIO passphrase, as you need both the backup archive and that password to restore onto a new server.

The rule that matters: a backup on the same disk as the data is not a backup. Point All-in-One at a second disk or a remote Borg repository, or copy the backup folder off the server every night. Then test it: restore to a spare server once, so you know the steps before the day you need them.

ProblemAll-in-One refuses the domain
FixThe A record does not point to this server yet, or port 80 or 443 is closed. Check the record, wait for it to resolve, and open the ports.
ProblemThe AIO interface shows a certificate error on port 8080
FixThat is expected: port 8080 uses a self-signed certificate. Open it by the server’s IP address and accept the warning.
ProblemOffice documents will not open in the browser
FixNextcloud Office is not ticked in All-in-One, or the server is short of memory for it. Enable it, then check the memory.
ProblemThe phone syncs files but not the calendar
FixFiles and calendars are separate: add a CalDAV account on iPhone, or a sync app such as DAVx⁵ on Android.
ProblemThe disk fills faster than the files explain
FixFile versions and the trash bin. Empty old trash, and plan more disk for versions.

08Nextcloud ready on CoreVPS

Nextcloud is one of nearly 100 ready apps on CoreVPS. When you order, choose your operating system, then pick Nextcloud under «Preinstalled software»; the list shows only the apps that support that system and fit the plan. After the server is delivered, the install runs on its own, and an email brings you the address and the login details or the setup steps.

The order form starts Nextcloud at the VPS Plus plan: 2 vCPU on AMD EPYC processors, 2 GB of memory and 30 GB of NVMe, at $6 a month, with 15 GB of backup space. That suits a small team’s documents, calendar and contacts. If your files need more room, or you want Nextcloud Office and Talk, the CoreVPS builder takes NVMe up to 1000 GB and memory up to 64 GB, and you can upgrade later without reinstalling. Once the email arrives, follow the steps above that apply: point the domain at the server from DNS Console, turn on and enforce two-factor sign-in, and send backups off the server.

And if you would rather protect your company’s files without running a server at all, Illevante’s Nexus Cloud, smart cloud backup for businesses with AES-256 encryption, is coming soon with a 14-day free trial. For help choosing between the two, ask our support team.

Test your understanding

Three questions, one minute

⁦0 / 3⁩Set 1

  1. 01What does Nextcloud need before All-in-One will run it?

  2. 02How much of a user’s free space can file versions use at most?

  3. 03How should you open the All-in-One admin interface the first time?

Ready to start? Power your projects today

Choose the hosting, server or domain that suits your business, and our specialist team is available around the clock to make your projects a success.

A .com domain a year
$17
cPanel hosting per month
$2
CoreVPS servers per month
$3.50