Nextcloud and OpenMediaVault (OMV) are powerful free and open-source software (FOSS). By using them in tandem, you can build and deploy your own private cloud storage and network-attached storage (NAS) with an intuitive web interface for storage management.

By installing Nextcloud on OpenMediaVault, you can store, share, and access all your internal/external storage—including USB drives—and files from anywhere, all while maintaining complete control over your data.

enable ssh in openmedia vault

Why Install and Host Nextcloud on OpenMediaVault?

You can install Nextcloud directly on Raspberry Pi using a Docker container or directly in Raspberry Pi OS. However, installing the Nextcloud via OpenMediaVault combines secure data storage with cloud-like features for easy access and collaboration.

By hosting Nextcloud on Raspberry Pi using OMV:

It is recommended toinstall Raspberry Pi OS on SSDfor consistent performance during heavy workloads. you may also directly install Nextcloud on Raspberry Pi OS tobuild a personal DIY cloud storage with remote access.

Prepare Your OpenMediaVault NAS for Nextcloud Installation on Raspberry Pi

Before you can begin the Nextcloud installation and setup, verify to assign or configure a static IP address for your OpenMediaVault device (i.e. Raspberry Pi). This is important because Nextcloud requires a consistent IP address to function properly.

Step 1: Enable SSH

Follow these steps to enable SSH (Secure Shell) for remote access.

Step 2: Install OMV-Extras

SSH into your Raspberry Pi from another computer and run the following command to install the OMV extras.

After the installation, refresh or log in to the OpenMediaVault web interface and then go to Plugins.

install openmediavault compose plugin on raspberry pi

Find and install theopenmediavault-compose x.x.xplugin.

Step 3: Install Docker and Portainer

Under the Services section in OpenMediaVault, you will see a new entry calledCompose. We will use it to install the Docker and the portainer required for Nextcloud installation.

During the installation, you may receive a connection loss error. Simply refresh the page and try again. If you see “Installed and running” in theStatussection, open the SSH connection and then run the following command to install the portainer.

install docker and portainer in openmediavault raspberry pi

After the installation, visithttps://IPAddressOfPi:9443. Make sure to change the username and password.

Step 4: Create a MariaDB Database

On the portainer, clickStacks > Add stacksand then paste the following code into the web editor.

verify to give the stack a proper name, such asmariadb. Also, change the password and database name.

deploy maridb database container on openmediavault for nextcloud

ClickDeploy the stack.

This will install and deploy the MariaDB database that we will need for the Nextcloud setup.

Alternatively, you’re able to also install the MariaDB server manually via SSH and create a database and database user.

change the openmediavault default port to vacate port 80

Step 5: Change OpenMediaVault Port

By default, the OpenMediaVault runs on port 80. However, it’s recommended that you change the OpenMediaVault port to something else, such as 8090. This will make port 80 available for Nextcloud. To do this, follow these steps:

Step 6: Install and Set Up Nextcloud on OpenMediaVault

Follow these steps to install and set up Nextcloud on OpenMediaVault running on Raspberry Pi.

You can now access and log in to Nextcloud at the Pi’s local IP address. You can upload and download files to Nextcloud using any system in your home, including macOS, Windows, and Linux. A Nextcloud app is also available for Android and iOS devices that you can use to sync your photos, videos, documents, and other data to/from your mobile devices.

To expose Nextcloud to the internet, you’re able to use Nginx Reverse proxy, Cloudflare Tunnel, or your router (port forwarding).

Unlock the Power of a Self-Hosted Cloud

Installing Nextcloud on your OpenMediaVault NAS running on a Raspberry Pi can provide you with a cheap yet powerful and secure private cloud storage solution. With Nextcloud on your OpenMediaVault NAS, you’re able to take control of your data and enjoy the convenience of cloud storage without relying on third-party providers.

By following the steps above, you can easily set up and configure Nextcloud on Raspberry Pi to meet your specific needs. Remember to regularly update your Nextcloud and OpenMediaVault installations, secure your Nextcloud instance, and back up your data to ensure a smooth and reliable experience.