Skip to main content

Automation, AI & open source

How to Self-Host Nextcloud: 2026 Setup Guide

Self-host Nextcloud with the official All-in-One (AIO) Docker method: server prep, install, automatic SSL, users and apps, and encrypted backups.

Updated 29 Oct 20268 min readBy ManojFirst published 20 Jul 2026

The official way to self-host Nextcloud is the Nextcloud All-in-One (AIO) Docker image. One command starts a master container, which then runs the whole stack for you: files, database, cache, office editing and encrypted backups. You point a domain at the server, AIO fetches an SSL certificate, and you own your cloud.

Short answer

Install Docker Engine on a Linux VM, run the official Nextcloud AIO master container with one docker run command, open the AIO admin panel on port 8080, and enter a domain that points at the server so AIO can issue a Let's Encrypt certificate. Then create users, add storage, enable apps and schedule BorgBackup, all from the AIO and Nextcloud web interfaces.

I am Manoj. I lead open-source and ERPNext deployments at MithTech, a team of Frappe specialists in Bengaluru, and much of that work is helping organisations run their own open-source stack instead of renting it. We have deployed Nextcloud on the same VMs where clients run ERPNext, so this guide is a working setup, not a lab demo. Honest take: AIO removed most of the pain that used to make people give up on self-hosting Nextcloud. The database, cache and TLS wiring is now done for you.

Why self-host Nextcloud instead of renting cloud storage?

Your documents, contacts and calendars live on infrastructure you control, in a region you choose. Nextcloud is open source under AGPL-3.0, so there is no per-user subscription and no storage cap beyond your own disk. Managed Nextcloud and other hosted options are priced by each provider; check their own pages.

Rented cloud storage bills per user for as long as you use it. A self-hosted instance costs a VM and some maintenance time. Nextcloud also does more than files: calendars, contacts, in-browser document editing and video calls run from one login. The longer comparison is in the open-source Dropbox alternative guide.

What do you need before installing Nextcloud?

One Linux virtual machine with a couple of CPU cores, a few gigabytes of RAM, disk sized to your files, and Docker installed. A registered domain and open ports 80 and 8443 let AIO fetch a trusted certificate. You need root or sudo access.

For a small team
OSA current Linux distributionUbuntu, Debian and similar all work
CPU / RAM2+ cores, 4 GB+ RAMMore if you enable office editing or antivirus
StorageSized to your dataA separate data volume is cleaner to back up
DockerOfficial Docker EngineSnap-based Docker is not supported
DomainOne domain or subdomainNeeded for automatic SSL
Ports80, 8080, 844380 and 8443 for certificates; 8080 for the AIO admin panel

How do you install Nextcloud with Docker AIO?

A single docker run command launches the AIO master container; setup then continues in the browser on port 8080. The master container creates and manages every other container (Nextcloud, database, cache, backups) for you.

1

Install Docker Engine

Install Docker from the official Docker documentation for your distribution and check it with sudo docker run hello-world. Do not use the snap package.

2

Run the AIO master container

The command from the AIO repository:

3

Open the AIO admin interface

Browse to https://your-server-ip:8080, accept the self-signed certificate warning, and copy the passphrase AIO generates. Store it safely: you need it to log back into the AIO panel.

4

Enter your domain

Type the domain you pointed at the server. With ports 80 and 8443 reachable, AIO checks the domain and issues a Let's Encrypt certificate.

5

Start the containers

Pick your optional services, then start the stack. AIO pulls the Nextcloud, database, cache and backup containers and brings them online.

Always copy the current command from the Nextcloud AIO repository, since flags change between releases.

How do you set up SSL and a domain?

SSL is handled for you when a public domain resolves to your server and ports 80 and 8443 are open through your firewall or router. You enter the domain during AIO setup and the master container requests and installs a Let's Encrypt certificate, with no OpenSSL or Certbot work. Renewal is automatic.

If the server sits behind an existing reverse proxy (Nginx, Caddy or Traefik), AIO supports that too, but the setup differs: the proxy terminates TLS and forwards to AIO's internal Apache container. For a first deployment, the direct method with open ports is simpler, and it is what we set up for most clients.

How do you add users, storage, and apps?

After first login, users and apps are managed in Nextcloud's own web interface, not the AIO panel. As administrator you create accounts under Users, set groups and quotas, and enable apps from the Apps section. External storage and data-directory sizing sit in the admin settings.

  • Users: add accounts one by one or by bulk import, set group quotas, and turn on two-factor authentication for everyone.
  • Storage: grow the data volume on the host as files accumulate; a dedicated volume keeps backups and expansion clean. S3-compatible or SMB storage can be mounted through the External Storage app.
  • Apps: enable Calendar, Contacts, Notes, Deck and the office suite. Nextcloud Office (Collabora) ships as an optional AIO service.

For teams that also run business software, Nextcloud sits well beside ERPNext: documents on one side, operations on the other. Our ERPNext implementation service covers that kind of paired stack for organisations that would rather not run it themselves.

How do you back up a self-hosted Nextcloud?

Backups run through BorgBackup, which ships inside AIO and makes encrypted, deduplicated, incremental snapshots of your files, database and configuration. In the AIO admin panel you set a target (a mounted local disk or a remote location), pick a schedule, and AIO does the rest. Restores run from the same panel.

Only the first backup copies everything; later runs store the changes, so backups stay fast and small. Keep at least one copy off the host, test a restore before you rely on it, and store the AIO passphrase and backup password somewhere outside the server.

Should you run Nextcloud on a VM or a managed platform?

It comes down to how much operations work your team wants to own. A self-managed VM gives full control and the lowest running cost, paid for with your time on updates, monitoring and security patches. A managed deployment hands that maintenance to someone else, which suits teams without a sysadmin.

ApproachControlMaintenanceFit
Self-managed VMFullOn youTeams with sysadmin skills
ManagedSharedMostly handledTeams that want to focus on the business

Many organisations start self-managed and move to managed as their data grows. Run it yourself if someone will approve AIO updates, keep the host OS patched and test a BorgBackup restore; have it run for you if nobody owns that work, or the files are ones you cannot lose.

Under managed hosting we run Nextcloud on one named server, in your cloud account or ours, not a shared pool: nightly backups copied off the server, one restored on a schedule, every upgrade tried on a copy first, and the master login stays yours. If you leave, a server in your account is already yours; on ours you get a full backup, the code and the settings. It is a monthly fee for running it plus the server, quoted in writing after a call. The self-hosting cost comparator sets that against a self-managed VM.

Frequently asked questions

+

Is Nextcloud really free to self-host?

Yes. Nextcloud Server is open source under AGPL-3.0, with no per-user fee and no storage cap beyond your own disk. Your costs are the server (a VM or your own hardware) and the time to maintain it. Paid support subscriptions exist but are not needed to run it.

+

Which install method should I use in 2026?

Nextcloud All-in-One (AIO), the method Nextcloud recommends. AIO packages Nextcloud, the database, cache, office editing and backups into containers run by one master container. It handles version upgrades and database migrations for you, which is why it has replaced manual LAMP-stack installs for most people.

+

Do I need Linux, or can I use Windows?

Linux is the cleanest host for AIO and what we recommend. AIO also runs on Windows and macOS through Docker Desktop for testing, and on some NAS devices, but production self-hosting is most reliable on a Linux VM with official Docker Engine. Avoid the snap Docker package on Ubuntu.

+

How much server does a small team need?

Start with a couple of CPU cores, around 4 GB of RAM, and disk sized to your files. Heavier optional services (in-browser office editing, full-text search, antivirus scanning) need more, so leave headroom if you plan to use them.

+

How do I keep Nextcloud updated and secure?

AIO manages Nextcloud and container updates from its admin panel, including database migrations, so you approve upgrades rather than run them by hand. Beyond that, keep the host OS patched, turn on two-factor authentication, restrict admin access, run regular BorgBackups, and check the built-in security scan in the admin settings.

+

Can Nextcloud replace my business file-sharing tool?

For most file sync, sharing and document collaboration, yes. Nextcloud covers file storage, shared links, calendars, contacts and in-browser editing on a platform you control. Whether it fully replaces a specific tool depends on your workflows; the open-source Dropbox alternative guide helps you decide.

Your next step

Want Nextcloud set up and maintained for you?

Next step · Automation, AI & open source

Now see hosting someone else looks after

ERPNext, Medusa and open-source tools on infrastructure you own, with updates, backups and monitoring handled for you.

Managed hosting

Comments & ratings

No comments yet. Start a new discussion.

0

Manoj · Published on 20 July 2026

Worked with us? Leave a Google review

Questions about this? Talk to the team.

Book a 30-minute Google Meet, WhatsApp us, or send a message. The engineer who works on this replies.

Send us a message
Your details go to our team's CRM and are used only to reply.