You want to run Nextcloud on your own VPS and wonder how to install it? There are three common ways: Nextcloud All-in-One (AIO), the community Docker image with your own Compose file, or a preinstalled app that the host sets up when you order. They differ mainly in who takes care of updates, backups and HTTPS.
This article covers the installation. How much RAM, CPU and storage Nextcloud needs, and which PHP version and database, is on the page about the Nextcloud system requirements with a calculator and matching servers. We focus on AIO with Docker Compose, because the Nextcloud project suggests this way for production use.
Note on compensation: RackDiff receives a commission from some providers when you book via links on our provider or comparison pages; your price does not change. How we sort and weight offers is explained in our methodology.
TL;DR - Quick answer
- Nextcloud AIO is the official installation method according to the project: a mastercontainer sets up Nextcloud, database, cache, HTTPS and backups and keeps them up to date (per the Nextcloud AIO README, as of Nov 13, 2026).
- Docker Compose is the suggested start for AIO in production; the Compose file only starts the mastercontainer (per the README, as of Nov 13, 2026).
- The community image gives you full control over every container, but volunteers maintain it; Nextcloud GmbH offers no support for it (per Docker Hub, as of Nov 13, 2026).
- The host's one-click app is the shortest way to get started. At Contabo the security of the instance is your responsibility afterwards, and there is no application support for Nextcloud itself (per Contabo, as of Nov 13, 2026).
- For all three ways you need a domain that points to the server and a plan for backups.
What are the three ways?
All three ways lead to the same Nextcloud; only the operation differs. With AIO, the mastercontainer does the management: it creates the other containers, fetches certificates and installs updates. You control it through a web interface.
With the community image you write the Compose file yourself. You decide which database runs, which web server sits in front and how cron and backups are organised. That is flexible, and every one of these decisions stays your job.
The host's one-click app puts Nextcloud on the server when you order or reinstall. After that you run the instance like one you installed yourself. Which method the host uses internally is not always stated on the product page.
How large the server should be depends on the number of users and the amount of data, not on the installation method. The guideline values are in the overview of how much RAM Nextcloud needs.
VPS for Nextcloud: plans that meet the requirements
The cheapest plans with at least 2 GB RAM, 1 vCPU and 80 GB storage, sorted by price. For Nextcloud these are the defaults of our calculator.
Contabo Cloud VPS 4
4 vCPU · 8 GB RAM · 100 GB SSD
€6.55 / month incl. VAT
Contabo Cloud VPS 6
6 vCPU · 12 GB RAM · 200 GB NVMe SSD
€8.93 / month incl. VAT
Strato VPS M
2 vCPU · 4 GB RAM · 120 GB SSD
€10.90 / month incl. VAT
Prices incl. VAT · Prices as of Dec 4, 2026 · How we rank (methodology)
Compare all 55 matching plans →What does the AIO mastercontainer take care of?
The mastercontainer orchestrates the parts of the Nextcloud stack. With a single container you start an installation that creates and manages all further containers (per the README, as of Nov 13, 2026).
According to the README, AIO ships PostgreSQL as the database, Redis as the distributed cache and for file locking, APCu as the local cache and PHP-FPM with OPcache enabled. By default each PHP process gets up to 512 MB of RAM, uploads via public links go up to 10 GB, and PHP and web server timeouts are set to 3600 seconds; all of this is adjustable (per the README, as of Nov 13, 2026).
In the interface you can add optional containers: Nextcloud Office, the backend for Nextcloud Talk with a TURN server, Talk recording, Imaginary for previews of more formats, ClamAV as a virus scanner, full-text search and Whiteboard (per the README, as of Nov 13, 2026). Every additional container needs memory; plan for it before you switch it on.
AIO also sets limits. Nextcloud runs only under its own domain, not under an IP address, not in a subdirectory and only on port 443; self-signed certificates for Nextcloud are not supported (per the README FAQ, as of Nov 13, 2026). Up to 100 users need no licence; more are possible with Nextcloud Enterprise (per the README FAQ, as of Nov 13, 2026).
Install Nextcloud AIO with Docker Compose
For production use the project suggests the example Compose file instead of docker run, because it makes updates and changes easier to manage (per the README, as of Nov 13, 2026). The steps:
- Prepare the server. A Linux VPS with Docker Engine from the official Docker guide (as of Nov 13, 2026). Docker installed via Snap is not supported, and the README recommends VPS with KVM virtualisation (per the README, as of Nov 13, 2026).
- Set up the domain. Create a DNS record, for example
cloud.yourdomain.com, that points to the server's IP. - Create the Compose file. Save the following version as
compose.yaml. It is the official example file without comments and without the commented-out options (per compose.yaml in the AIO repository, as of Nov 13, 2026).
name: nextcloud-aio
services:
nextcloud-aio-mastercontainer:
image: ghcr.io/nextcloud-releases/all-in-one:latest
init: true
restart: always
container_name: nextcloud-aio-mastercontainer
volumes:
- nextcloud_aio_mastercontainer:/mnt/docker-aio-config
- /var/run/docker.sock:/var/run/docker.sock:ro
network_mode: bridge
ports:
- "80:80"
- "8080:8080"
- "8443:8443"
volumes:
nextcloud_aio_mastercontainer:
name: nextcloud_aio_mastercontainer
- Start it. In the folder of the file, start the mastercontainer with
sudo docker compose up -d. - Open the interface. Go to
https://SERVER-IP:8080, using the IP address and not the domain. Port 8080 uses a self-signed certificate that you accept in the browser (per the README, as of Nov 13, 2026). Keep the passphrase of the interface in a safe place; you need it for later logins. - Enter the domain and choose containers. Enter the domain, pick the optional containers and start them from the interface. You also see the progress and the state of the containers there.
Two names in the file must not change: the container name, because mastercontainer updates depend on it, and the volume name, because otherwise the built-in backup does not work (per the comments in compose.yaml, as of Nov 13, 2026). If Nextcloud should store its data on another disk, set NEXTCLOUD_DATADIR before the first installation; after the installation you must not change the value (per the README, as of Nov 13, 2026).
When does the community image with your own Compose file fit?
The nextcloud image on Docker Hub is a micro-image maintained by community volunteers and designed for expert use. For a quick installation with all features of Nextcloud Hub, the project itself points to AIO (per the README of the Docker image, as of Nov 13, 2026).
There are two variants. The apache variant contains a web server, the fpm variant needs a second container as a web server in front. The example Compose files in the README combine Nextcloud with MariaDB and Redis; the Apache example has no TLS encryption and is meant to run behind a proxy (per the README of the Docker image, as of Nov 13, 2026). The examples contain no cron service for background jobs; you add that yourself.
For updates: you can only move up one major version at a time, and all data lives in the folder /var/www/html, for which you mount a named volume or a host folder (per the README of the Docker image, as of Nov 13, 2026).
This way fits if you already run a reverse proxy and a backup solution, want to add Nextcloud to an existing stack, or need components that AIO does not provide. In return you take on every maintenance task yourself.
What does a one-click app from the host offer?
Some hosts put Nextcloud on the server when you order. At Contabo you choose the preinstalled Nextcloud image while ordering; on an existing Contabo VPS or VDS you can install Nextcloud via the Customer Control Panel (per Contabo, as of Nov 13, 2026). According to Contabo, the setup can take up to 30 minutes in two stages (per Contabo, as of Nov 13, 2026).
The start is quick, the responsibility afterwards is yours. According to Contabo, the security of the instance is in the user's hands, and there is no application-specific support for Nextcloud (per Contabo, as of Nov 13, 2026). According to Contabo, you install updates with the built-in updater in the Nextcloud admin panel (per Contabo, as of Nov 13, 2026). The product page does not say whether it is an AIO installation or a classic one. Check that after the setup, before you plan backups and updates.
Contabo's plans and locations are on the Contabo provider page, other servers in the VPS comparison.
How do I get HTTPS and a domain?
AIO secures Nextcloud with TLS through its internal reverse proxy and gets certificates from Let's Encrypt. For this, port 443/TCP must be available to AIO and reachable; port 80 is used by the mastercontainer for the ACME HTTP challenge (per the AIO reverse proxy docs, as of Nov 13, 2026). For Nextcloud Talk you also open port 3478 for TCP and UDP (per the README, as of Nov 13, 2026).
If you do not have a domain yet, AIO can register a subdomain under dedyn.io via deSEC (per the README, as of Nov 13, 2026). For a permanent instance your own domain is clearer, because you can switch the provider later.
If a reverse proxy such as Caddy, Nginx or Traefik already runs on the server, give AIO its own port with APACHE_PORT, for example 11000, and bind it to 127.0.0.1 with APACHE_IP_BINDING when the proxy runs on the same server. Ports 80 and 8443 then go from the Compose file, and AIO's built-in HTTPS is off; the proxy handles the certificates and has to use port 443 (per the AIO reverse proxy docs, as of Nov 13, 2026).
With the community image, HTTPS is always your job. Add the proxy to trusted_proxies and set overwriteprotocol to https, otherwise Nextcloud generates wrong addresses (per the Nextcloud admin manual, as of Nov 13, 2026).
Backups and updates compared
AIO ships a backup solution based on BorgBackup that you control entirely from the interface, from creating to restoring. After the first backup you can enable daily backups, which then also update all containers, Nextcloud and the apps (per the README, as of Nov 13, 2026). To restore on a new server you need the archive and the password.
The interface shows new container versions; a cron job checks for updates once a day. The README recommends a backup before every container update. Because the project values stability over new features, new Nextcloud versions reach the latest channel only after about two weeks (per the README, as of Nov 13, 2026).
With the community image you plan backups yourself: database dump, the volume under /var/www/html and the data. You update with a new image tag, one major version after another (per the README of the Docker image, as of Nov 13, 2026).
With the one-click app both depend on how the host installed it. The host's snapshots back up the whole server but do not replace a copy in a second location. Where the backup copy lives also matters for data protection, so plan its location before the first backup runs.
Which way suits whom?
AIO with Docker Compose suits you if Nextcloud is the main service on the server and you want to control backups, HTTPS and updates from one interface. In return you accept the project's rules: a domain, port 443, the bundled database.
The community image suits you if you already run a Docker stack with a reverse proxy, for example for Paperless-ngx or Immich, and want to add Nextcloud to it. You need Docker experience and time for maintenance.
The one-click app suits you if you want to try Nextcloud first and order the server from that host anyway. Clarify beforehand how updates and backups will run, as the responsibility is yours after the setup.
For all three ways, the size of the VPS decides daily operation: the calculator on the page about the Nextcloud system requirements shows how much RAM suits your number of users.
Conclusion
For many new instances, AIO with Docker Compose is the shortest way to a maintained Nextcloud: one container, one interface, backups and updates included. The community image pays off if you build Nextcloud into an existing stack and want to handle maintenance yourself. The host's one-click app saves the installation, not the operation. Settle the domain before installing, choose the server size by number of users and set up the first backup before real data is on the server.
Frequently asked questions
Do I need my own domain for Nextcloud AIO?
Which ports do I need to open for Nextcloud AIO?
Can I run Nextcloud AIO behind an existing reverse proxy?
How do I update Nextcloud AIO?
Does Nextcloud GmbH support the Nextcloud Docker image?
Find a server for Nextcloud
The calculator estimates RAM, CPU and storage by number of users and shows matching servers.
Open the Nextcloud calculator
