Install Nextcloud on a VPS: Manual Setup or Ready-Made

Published on 30 November 2026 · 3 min read

Terminal showing the Docker command that launches Nextcloud All-in-One on a VPS

Installing Nextcloud on a VPS means taking back what you currently hand over to Google Drive or Dropbox: files, photos, calendars, contacts, video calls. Everything stays on your own server, and nobody charges you per user. This guide walks through the install with Docker, then covers the option if you'd rather not touch the terminal.

What you need before you start

Three things. A VPS running Debian or Ubuntu with root access: 2 vCores and 4 GB of RAM are enough for personal use or a small team. A domain name, or a subdomain, pointing to the VPS's IP address, because Nextcloud won't work on a bare IP address. And enough disk space for what you plan to store.

With us, the entry-level Intel Linux VPS (4 vCores, 4 GB RAM, 50 GB NVMe, €4.99/month) runs Nextcloud without any trouble. If you're planning to store lots of photos, go for the 80 GB plan instead.

Step 1: install Docker

Connect over SSH, then run Docker's official install script:

curl -fsSL https://get.docker.com | sudo sh

Step 2: launch Nextcloud All-in-One

Nextcloud All-in-One, or AIO, is the simplest official method. A single command installs the interface that handles everything else: Nextcloud, the database, the HTTPS certificate and backups.

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

Step 3: finish in the browser

Open https://YOUR-VPS-IP:8080. At this point the certificate is self-signed, so your browser will show a warning. That's expected, you can carry on.

The interface shows a passphrase. Write it down: it's the password for the AIO admin panel. Then enter your domain name: AIO checks that it points to the server and generates the Let's Encrypt certificate. All that's left is to tick the modules you want (office suite, Talk video calls) and start the containers. The login details for the Nextcloud admin account are shown at the end.

On the firewall side, keep ports 80 and 443 open for the site, 8080 for the admin panel, and 3478 if you use video calls.

Settings to change straight away

Turn on the built-in backup from the AIO interface and send it somewhere other than the VPS. A backup stored on the same disk as your data doesn't protect you from anything.

Create one account per person rather than sharing the admin account, and enable two-factor authentication in the security settings. Finally, install the desktop app and the mobile app: they're what sync your folders and upload your photos automatically.

Common problems

Symptom Usual cause
AIO rejects the domain name The DNS isn't pointing to the VPS yet, or port 443 is closed
Page unreachable on port 8080 The server's firewall is blocking the port
Large file uploads get cut off A proxy in front of Nextcloud limits the request size

The no-terminal option

If managing Docker, ports and updates doesn't appeal, our Nextcloud VPS starts at €6.99/month. Nextcloud is installed while the server is being deployed, you receive your login details and you can start organising your files. You move up a tier when you run out of space, with nothing to reinstall.

Either way, DDoS protection is included and support answers 7 days a week on Discord or by ticket.

Blog · Home