Skip to content

Nextcloud on a VPS

File cloud

Author
Nextcloud GmbH
License
AGPL-3.0
Version
35.0.1

The script is free · VPS from $10.20 per month · installs in about 10 minutes

Install over SSH

root@vps:~# command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; 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

  • SystemUbuntu 24.04 · x86_64ok
  • Sourcegithub.com/nextcloud/all-in-oneok
  • Version35.0.1ok
  • Port8080/tcplisten
  • Port443/tcplisten
  • Port80/tcplisten

✓ Nextcloud 35.0.1 installed · about 10 minutes

root@vps:~#

Install command from the library. Output is shortened and may differ on your server.

What it is

  • Cloud
  • Files
  • Calendar
  • Office

Nextcloud is your own cloud for files, calendars, contacts and collaboration. It works like Google Drive or Yandex Disk, except the data lives on your server.

Installation uses Nextcloud All-in-One: a single master container brings up Nextcloud, the database, Redis, the certificate and, optionally, an office suite, Talk video calls and antivirus. Backups and updates are built in.

Clients are available for Windows, macOS, Linux, Android and iOS, and files sync automatically.

  • File sync across all your devices
  • Calendars, contacts and tasks
  • Online office and Talk video calls (optional)
  • Built-in backups and updates in AIO
  • Public links with password and expiry date

Recommended plan

For Nextcloud: at least 4 vCPU, 4 GB RAM and 100 GB NVMe.

Minimum to run
1 vCPU · 2 GB RAM · 20 GB disk
Systems
Ubuntu 22.04 · Ubuntu 24.04 · Debian 12

How to install

Three steps in the bot or one command over SSH; installation takes about 10 minutes.

  1. 01

    Choose a plan in the bot

    Open @ExpressHost_bot and pay for a VPS. The server will be ready in about 60 seconds.

  2. 02

    Add Nextcloud

    At the “Add-ons” step pick the script from the library, or run it later: Server settings → Scripts.

  3. 03

    Open https://SERVER-IP:8080 and save the AIO access password

    The bot will send the server address and login details to the chat.

Manually over SSH

Connect to the server as root and run the command. Supported systems: Ubuntu 22.04, Ubuntu 24.04, Debian 12.

Install command
command -v docker >/dev/null || curl -fsSL https://get.docker.com | sh; 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

Ports

Nextcloud ports
PortProtocolPurpose
8080tcpAIO interface (self-signed certificate)
443tcpNextcloud after installation
80tcpLet's Encrypt certificate issuance
8443tcpAIO interface with a valid certificate

After installation

  1. 1.Open https://SERVER-IP:8080 and save the AIO access password
  2. 2.Enter a domain pointed at the server and choose optional modules
  3. 3.Click «Download and start containers» and wait for startup to finish
  4. 4.For Talk, open port 3478 over TCP and UDP

Nextcloud FAQ

Didn’t find an answer? Message @ExpressHost_SupportBot.

How much storage do I need?

Nextcloud itself takes little space; the rest is your files. Choose a plan with plenty of NVMe headroom.

How do I update Nextcloud?

In the AIO interface: stop the containers and start the update. AIO can make a backup beforehand.

Where is the data stored?

In the nextcloud_aio_nextcloud_data Docker volume. You can set a different folder with the NEXTCLOUD_DATADIR variable on first launch.

Nextcloud installs at checkout — in the bot.