Skip to content

shafinalam07/raspberry-pi-nextcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

🏠 Self-Hosted Personal Cloud — Raspberry Pi + Nextcloud

A self-hosted cloud storage solution built on a Raspberry Pi 3B+ using Docker and Nextcloud. Your own private Google Drive — no monthly fees, full data privacy, complete control.

Nextcloud Docker Raspberry Pi Linux


📌 Project Overview

This project turns a Raspberry Pi 3B+ into a fully functional personal cloud server accessible from any device on the local network. Built entirely from scratch with no prior Linux experience.


🛠️ Tech Stack

Technology Purpose
Raspberry Pi 3B+ Hardware server
Raspberry Pi OS Lite Operating system
Docker Container runtime
Nextcloud Cloud storage application
SSH Remote access
WiFi Networking Local network connectivity

📋 Prerequisites

  • Raspberry Pi 3B+ (or newer)
  • MicroSD card (16GB minimum)
  • Laptop with SSH client (PuTTY on Windows)
  • Home WiFi network (2.4GHz)
  • Raspberry Pi Imager

🚀 Setup Guide

Step 1 — Flash Raspberry Pi OS

  1. Download Raspberry Pi Imager
  2. Select device: Raspberry Pi 3
  3. Select OS: Raspberry Pi OS Lite (32-bit)
  4. Configure settings before flashing:
    • Enable SSH
    • Set username: pi
    • Set your password
    • Enter WiFi credentials (2.4GHz only)
    • Set WiFi country: IN
  5. Flash to MicroSD card

Step 2 — Boot and Connect

# Insert MicroSD into Pi and power on
# Wait 90 seconds, then SSH from laptop
ssh pi@raspberrypi.local

# Update the system
sudo apt update && sudo apt upgrade -y

Step 3 — Install Docker

# Install Docker
sudo apt install -y docker.io

# Add pi user to docker group
sudo usermod -aG docker pi

# Reboot
sudo reboot

Step 4 — Deploy Nextcloud

# Pull and run Nextcloud container
sudo docker run -d \
  -p 8080:80 \
  --name nextcloud \
  --restart always \
  nextcloud

# Verify container is running
sudo docker ps

Step 5 — Access Nextcloud

Open browser and navigate to: http://192.168.1.12:8080

Create admin account and complete setup.


📸 Screenshot

Nextcloud Dashboard

image

🔧 Troubleshooting

Issue Fix
Pi not on WiFi Use 2.4GHz network, Pi 3B+ doesn't support 5GHz
SSH not connecting Wait 90 seconds after boot, check IP with arp -a
Docker install fails Use sudo apt install docker.io instead of get.docker.com script
Nextcloud crashes Add swap memory to Pi

📚 What I Learned

  • Linux command line basics
  • SSH remote access and server management
  • Docker containerization
  • Self-hosting web applications
  • Network configuration and troubleshooting
  • Raspberry Pi setup and configuration

👤 Author


About

Self-hosted personal cloud on Raspberry Pi using Docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors