How To Install & Use Nextcloud On Raspberry Pi (Easy!)

Published at : 23 Dec 2025

Support the channel on Patreon: https://www.patreon.com/censiclick
Or with a one-time tip: https://paypal.me/censiclick

Twitter: https://twitter.com/CensiClick
Music by Epidemic Sound (referral link): https://www.epidemicsound.com/referral/3308ry/
Check out more of my videos: https://www.youtube.com/censiclick/videos

Link to Bitwarden video: https://youtu.be/eCJA1F72izc

Timestamps:
0:00 Intro
0:25 Referral to Bitwarden video for installation of RPi OS & Docker (https://youtu.be/eCJA1F72izc)
0:40 Downloading Nextcloud
1:38 Starting Nextcloud temporarily

docker run --name nextcloud -d -p 8080:80 nextcloud

2:07 Creating the database with PostgreSQL
2:37 Creating a Docker network

docker network create --driver bridge nextcloud-net

3:06 Starting the database container

docker run --name postgres -e POSTGRES_PASSWORD=123456 --network nextcloud-net -d postgres

docker run --name postgres -v /home/pi/nextcloud-db:/var/lib/postgresql/data -e POSTGRES_PASSWORD=123456 --network nextcloud-net -d postgres

3:53 Starting Nextcloud again

docker run --name nextcloud -d -p 8080:80 -v /home/pi/nextcloud:/var/www/html --network nextcloud-net nextcloud

4:07 Setting up Nextcloud
4:36 Tips for accessing Nextcloud on the internet
5:05 Nextcloud main features
6:11 Nextcloud App Store
6:26 Nextcloud settings
6:48 Adding Nextcloud users
6:59 Adding an external hard drive to Nextcloud

sudo chown -R www-data:www-data /media/usbdrive

docker run --name nextcloud -d -p 8080:80 -v /media/usbdrive:/data --network nextcloud-net -v /home/pi/nextcloud:/var/www/html nextcloud

9:01 Closing thoughts

Other links:
Wikipedia page with Instruction sets: https://en.wikipedia.org/wiki/Raspberry_Pi#Specifications
Docker Hub for Nextcloud: https://hub.docker.com/_/nextcloud
Expose to the internet - Step-by-step guide: https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion

This tutorial explains how to self-host the free open-source software Nextcloud on the popular single-board computer Raspberry Pi. The guide of course also works for other ARM and x86 devices but you might need to use different Docker images. Learn how to download and setup Nextcloud and the database software PostgreSQL using Docker. We will also briefly go over Nextcloud apps like calendar, contacts or tasks and their settings. The video closes by demonstrating how to connect an external USB hard drive to Nextcloud for extended storage.

» Credits «
"Nextcloud Logo Icon" on Iconscout ( https://iconscout.com/icons/nextcloud )
Stock footage by Videezy.com
"Raspberry Pi 3D-Model" by JoSaCo; Licensed under CC BY 4.0 ( https://creativecommons.org/licenses/by/4.0/ ); Changes: Slight model and texture adjustments