...
Skip to main content
Print

How to Install Nextcloud on Your VPS

The easiest way to install Nextcloud on a VPS is with Nextcloud All-in-One. One Docker container handles the installation, updates, backups and the SSL certificate. With Nextcloud you have your own alternative to Google Drive and Dropbox, with your files safely on a server in Amsterdam.

What do you need?

  • A VPS with at least 4 GB of RAM and enough storage for your files.
  • A domain name with an A record pointing to the IP address of your VPS, for example cloud.jedomein.nl.
  • Docker on your server. Read how to install Docker.

Step 1: start Nextcloud All-in-One

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 2: open the admin interface

Go to https://JOUW-IP:8080 and accept the certificate warning. Write down the passphrase you are shown: you need it later to log in.

Step 3: enter your domain and start the installation

Enter your domain, choose the components you want to use and click Download and start containers. Nextcloud requests an SSL certificate automatically.

Step 4: open the firewall

ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 8080/tcp
ufw allow 8443/tcp

Syncing files

Install the Nextcloud app on your computer and phone and log in with your domain. With the built-in apps you also sync your calendar and contacts.

Expanding storage

If your cloud grows, you simply move to a larger VPS plan. Keep an eye on your disk space with df and du.

Related articles

Table of Contents