Nextcloud Self Hosted Docker Setup: 6 Easy Steps

Google Drive is convenient right up until you hit the storage wall, get a price hike, or remember that every file you upload is sitting on someone else’s computer. Running nextcloud self hosted docker style fixes all three at once — you get your own private Drive, Photos, Calendar, and document editing, running on hardware you own, for zero monthly fees. And with Docker, the setup is genuinely a few commands.

I moved my whole household off Google Drive to Nextcloud two years ago and never looked back. Files sync across every device, my partner has her own account, and the only “subscription” is the electricity to run a tiny box in the closet. Here’s exactly how to set it up.

Why self-host instead of just paying for cloud storage? Control and cost. Your files never leave your house unless you want them to, there’s no per-gigabyte meter ticking, and you’re not one policy change away from losing access. It’s the same instinct behind ditching Google Photos for a self-hosted Immich setup — own your data, skip the rent.

Transparency Note: This post contains affiliate links. If you buy something through these links, I may earn a small commission at no extra cost to you. Every product mentioned is researched based on specs, expert reviews, and real user feedback.
nextcloud self hosted docker accessed from a laptop on a desk

The Hardware You’ll Run It On

Nextcloud is light. Any always-on Linux box works, but a low-power mini PC is ideal — quiet, cheap to run, and powerful enough for a household. The Beelink S12 Pro is my go-to: an Intel N100, 16GB of RAM, and a tiny power draw make it perfect for Nextcloud plus a few other containers.

No products found.

For the actual files, don’t rely on the mini PC’s small internal SSD long-term. Add a proper NAS-rated drive like the WD Red Plus 8TB for your photo and document library — it’s built for 24/7 duty and gives you room to grow.

WD Red Plus 8TB NAS 3.5 Inch Internal Hard Drive - 7200 RPM Class, SATA 6 Gb/s, CMR, 256MB Cache 8tb Red Plus
  • Packed with power to handle the small- to medium-sized business NAS environments and increased workloads for SOHO
  • Built and tested for up to 8-bay NAS systems, these drives give you the flexibility, versatility, and confidence in storing and sharing your precious home and work files
  • Available in capacities ranging from 1-14TB with support for up to 8 bays
  • 3D Active Balance, helps ensure your date is protected from excessive vibration and noise in a NAS or RAID environment reduces the degradation of your drive over time
  • 5400RPM performance class

Nextcloud Self Hosted Docker Setup: 6 Steps

The official, recommended way to run Nextcloud now is the All-in-One (AIO) image — one master container that manages everything else (database, Office, backups, antivirus) for you.

1. Install Docker on your Linux box (Ubuntu or Debian work great). Use the official convenience script — note that snap-based Docker isn’t supported by AIO:

curl -fsSL https://get.docker.com | sudo sh

2. Launch the AIO master container. This single command pulls and starts the manager:

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 nextcloud/all-in-one:latest

3. Open the AIO setup portal. In a browser on the same network, go to your server’s IP on port 8080:

https://YOUR-SERVER-IP:8080

(You’ll get a certificate warning the first time — that’s expected for the local admin panel. Accept it to continue.)

4. Save your passphrase and set your domain. AIO shows a one-time passphrase — copy it somewhere safe. Then enter the domain you’ll use to reach Nextcloud.

5. Pick your components and start. Choose the optional pieces you want — Collabora Office, Talk, the backup container — then hit start. AIO downloads and wires up every container automatically. Grab a coffee; this part takes a few minutes.

6. Log in to your cloud. Once the containers are green, open your Nextcloud domain, sign in with the admin account AIO created, and you’re running your own private cloud. Install the desktop and mobile apps to sync files everywhere.

Accessing It From Anywhere

To reach your files away from home without exposing ports to the internet, pair Nextcloud with a mesh VPN — my Tailscale home network guide is the safest way to do it. For the full component list and reverse-proxy options, the official Nextcloud AIO repo is the canonical reference. If you’re building a broader stack, this slots right into a Docker Compose home server.

Beyond File Sync: What Else the Box Can Do

Once the core setup is stable, Nextcloud quietly replaces more subscriptions than you’d expect. The Calendar and Contacts apps sync flawlessly with phones over standard CalDAV/CardDAV — that’s your Google Calendar exit. Nextcloud Office (built into the AIO image) gives you collaborative document editing in the browser, which covers the “we both need to edit this spreadsheet” use case that keeps households on Google Docs. Notes, Tasks, and Deck (a kanban board) round out the productivity suite, all syncing to the same apps on your phone.

My advice: resist enabling everything in week one. Each app you add is something to maintain, and the file sync alone has to earn your trust first. Add one app a month and you’ll actually learn what your household uses versus what just sounded cool in the app store.

Quick Answers: Nextcloud Docker FAQ

How much horsepower does Nextcloud actually need? Less than its reputation suggests. For a small household, 4GB of RAM and any modern quad-core — an N100 mini PC, a Pi 5, an old office desktop — runs the AIO stack comfortably. Where people go wrong is storage: put the data directory on an SSD, not the SD card or a USB spinner, and the “Nextcloud is slow” complaints mostly evaporate.

Can I access it away from home safely? Yes, and you have two philosophies to choose from. The convenient path is a reverse proxy with a proper domain and SSL — which the AIO image is built to handle. The paranoid path (mine) is keeping it LAN-only and connecting remotely over a VPN tunnel. If your household is non-technical, the proxy route wins; if it’s just you, the VPN route removes your files from the public internet entirely.

Will the mobile apps really replace Google Photos and Drive? The file sync and auto photo-upload are dependable — point the app at your camera roll and every shot lands on your own hardware within minutes. What you give up is Google’s machine-learning magic: search-by-face and “show me photos of dogs” need the separate Memories app and some patience. For photo AI specifically, my Immich setup guide covers the tool that does it better.

What’s the backup story? The AIO interface has built-in scheduled backups — turn them on day one and point them at a drive that is not the same disk holding your data. A self-hosted cloud with no backup isn’t a cloud, it’s a single point of failure with a nice web interface. External USB drive, weekly schedule, done.

Updates — scary or fine? With this nextcloud self hosted docker setup, genuinely fine: the AIO container manages component updates itself, and you approve them from the admin interface. The one rule: let the backup finish before clicking update. Rollbacks exist precisely for the day you don’t.

The Takeaway

Going nextcloud self hosted docker style is the single best “own your data” upgrade you can make. One mini PC, one drive, six commands, and you’ve replaced a monthly subscription with a private cloud that does more than Google Drive ever did. Set it up once and it just runs.

Thinking about ditching Google Drive? Tell me what’s holding you back — I’ll help you talk yourself into it.

Your files, your hardware, your rules — and no subscription renewal email ever again.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top