I Built My First Home Server: A Practical Proxmox Homelab Guide
The self-hosted setup I wish I had seen earlier: Proxmox, LXCs, Docker stacks, private-first networking with Tailscale, and backups you can actually restore.
About a year and a half ago, I bought my first home server.
At the time, I did not think of it as building infrastructure. I just wanted a place to run a few things myself. Maybe a media service. Maybe a dashboard. Maybe something to replace another subscription or cloud app I was tired of relying on.
Then the real questions started showing up.
Where should the data actually live?
What happens if a container breaks?
What should be a virtual machine, and what should be an LXC?
Should I expose this service to the internet, or keep it behind a VPN?
If I rebuild the server, do I lose everything?
Most beginner self-hosting guides do a good job getting you to the first dopamine hit: paste this Docker Compose file, run docker compose up -d, open the app. That part is useful, but it skips the part that eventually matters more: the architecture around the app.
So I wrote the guide I wish I had when I started:
This article is the longer story behind it: how the setup is structured, why I made certain choices, where I made things intentionally boring, and what I learned from running a real home server instead of just collecting compose files.
##The Core Idea: Containers Are Disposable, Data Is Not
The biggest mental shift for me was separating the thing that runs the service from the thing I actually care about.
A container is not the valuable part. A VM is not the valuable part. Even the Proxmox LXC itself is usually not the valuable part.
The valuable parts are:
- The photos
- The music
- The scanned documents
- The databases
- The app configuration
- The secrets and environment variables
- The folder structure that makes all of this understandable later
Once I started thinking that way, the architecture became clearer. I wanted the services to be easy to replace, rebuild, migrate, or destroy without taking my actual data with them.
That is why the guide keeps media and app data outside the containers:
/media/music
/media/paperless
/media/save
/mnt/storage/appdata
Docker containers can come and go. LXCs can be restored or rebuilt. Compose files can be edited. But the data lives in predictable places on disk, mounted into the services that need it.
That one pattern makes the entire setup less scary.
##The High-Level Architecture
The server runs Proxmox VE on bare metal. Proxmox is the base layer that manages virtual machines, LXC containers, storage, backups, networking, and resource limits.
The setup is intentionally simple. At a high level, it has four layers:
- Physical server: the actual machine running at home.
- Proxmox VE: the base operating layer that manages containers, virtual machines, networking, storage, and backups.
- LXCs: lightweight Linux containers for separating workloads. One LXC runs Docker and Portainer, while another handles services like Nginx, code-server, small web projects, and development workloads.
- Shared storage: predictable host folders for media and app data, such as
/media/music,/media/paperless, and/mnt/storage/appdata.
The Portainer LXC is the main Docker host. It runs the compose stacks for apps like Navidrome, Filebrowser, Paperless-NGX, AFFiNE, RoMM, Karakeep, and Nginx Proxy Manager.
The Services LXC is for things that do not need to be part of the Docker stack, like Nginx, code-server, development tools, small web projects, or ML experiments.
This is not the only way to design a homelab. You could run Docker in a VM. You could use multiple Docker hosts. You could run Kubernetes if you enjoy turning a Saturday into a distributed systems seminar.
But for a first serious home server, this layout hits a good balance: understandable, recoverable, and flexible enough to grow.
##Why Proxmox?
Before using Proxmox, I had run services on a VPS. That worked until I kept hitting the same wall: everything lived on one machine, but I did not have a clean way to separate workloads, experiment, back up whole environments, or recover from mistakes.
Proxmox changed that.
The best part is not that Proxmox is flashy. It is that it gives you a control plane for your home server:
- Create and destroy LXCs or VMs from the web UI
- Assign CPU, RAM, disk, and network resources per workload
- Take scheduled backups of containers and VMs
- Restore a broken environment to a new container ID
- Mount storage into containers
- Keep infrastructure experiments from becoming permanent mess
That last point is underrated. When you are learning, you are going to break things. A good setup should make breaking things survivable.
##LXCs vs VMs, Explained the Way I Needed It Explained
One of the first confusing Proxmox topics is the difference between VMs and LXCs.
A VM gets virtual hardware and its own kernel. It behaves like a full machine. This gives stronger isolation and better compatibility for anything that needs its own kernel, custom kernel modules, or a very standard Linux environment.
An LXC container shares the Proxmox host’s Linux kernel, but gets its own userspace: filesystem, packages, services, IP address, CPU limits, memory limits, and mounts.
In practice:
- VMs are heavier but more isolated.
- LXCs are lighter and faster to boot.
- LXCs are great for infrastructure services.
- VMs are safer for untrusted workloads or anything weird at the kernel level.
My setup uses LXCs because most of my workloads are normal Linux services. I do not need a full VM for every small piece of the system.
The tradeoff is that LXCs are not magic. They can still run into permission issues, filesystem quirks, or limitations when you try to do container-in-container setups. Docker inside an LXC works, but you need nesting enabled:
features: keyctl=1,nesting=1
If Docker-in-LXC keeps fighting you, move it into a VM. That is not failure. That is choosing the boring option when the boring option is better.
##Alpine vs Ubuntu for LXCs
I use Alpine Linux for the LXCs in this guide.
The reason is simple: I treat these containers like small appliances. Alpine is tiny, fast, and clean. It uses apk for package management and OpenRC for services:
apk add nginx
rc-update add nginx boot
service nginx start
That said, Alpine is not automatically better than Ubuntu or Debian.
Ubuntu and Debian are often easier if you are newer to Linux because most guides assume:
apt install …
systemctl enable …
systemctl start …
They also use glibc and systemd, which some software assumes. Alpine uses musl and OpenRC, which can occasionally surprise you.
My practical recommendation:
- Use Alpine when you want small, focused, lightweight containers.
- Use Debian or Ubuntu when you want maximum compatibility with tutorials and packages.
- Do not blindly copy commands between them.
The guide uses Alpine because it fits my setup, not because everyone must use it.
##Portainer as the Docker Control Surface
Docker Compose is the actual deployment format for most stacks, but Portainer gives me a convenient UI for managing them.
I use Portainer for:
- Deploying stacks
- Viewing logs
- Restarting containers
- Managing environment variables
- Keeping track of what is running
Could everything be done through the terminal? Yes.
But for a homelab that I actually maintain, Portainer is nice. It makes the system easier to inspect at a glance, and it lowers the friction for small changes.
The important part is still the compose file. Portainer should not become the only place where your configuration exists. I keep compose files in the repo so the setup is reproducible.
##The Docker Stacks
The guide includes several stacks that cover the services I actually use.
Immich: Photos
Immich is the self-hosted Google Photos alternative in the setup.
It is one of the services where I would be most careful. Photos are not throwaway data. If you run Immich, you need to think about:
- The uploaded photo library
- The database
- Background jobs
- Machine learning containers
- Updates and release notes
- Backups and restore testing
For Immich, I point people to the official compose file because Immich changes quickly. This is one of those apps where stale instructions can become harmful.
Navidrome + Filebrowser: Music
This is one of my favorite parts of the setup because the pairing is intentional.
Navidrome is the music server. It indexes the library, provides the web UI, and supports Subsonic-compatible apps.
Filebrowser is the admin surface. It lets me drag and drop high-res audio files into the music folder from a browser.
Both point at the same source-of-truth directory:
/media/music
Filebrowser mounts it as the writable file management surface. Navidrome mounts it as the music library.
The workflow is:
- Upload FLAC or other audio files through Filebrowser.
- Files land in
/media/music. - Navidrome scans the folder.
- I stream the library through Navidrome from anywhere.
The important thing is that the music is not trapped inside either app. If I stop using Navidrome tomorrow, my library is still just normal folders and files.
That pattern matters.
Paperless-NGX + AFFiNE: Documents and Notes
Paperless-NGX handles document management and OCR. AFFiNE handles notes and collaborative workspace-style content.
This stack is more complicated because it involves databases, Redis, persistent media, and app-specific configuration. It is exactly the kind of service where you do not want to treat the container as the backup.
For Paperless, the critical pieces are:
- Consumed documents
- Media files
- The database
- Export folders
- App configuration
If you only back up one random folder and ignore the database, you may technically still have files, but lose the metadata that made the system useful.
RoMM: ROM Management
RoMM is for managing ROM libraries with metadata scraping.
Like the music setup, this benefits from a clean storage layout. The files should live somewhere understandable, and the app should enhance the library rather than become the only way to understand it.
Karakeep: Bookmarks and Read-Later
Karakeep gives me a self-hosted bookmark and read-later system with search. It uses a web app, a headless browser component, and Meilisearch.
This is a good example of why compose files are useful: one “app” is often multiple containers. The compose file explains the relationship between them.
Nginx Proxy Manager
Nginx Proxy Manager is there for reverse proxying and TLS management where needed.
I do not expose everything publicly. That is the key point.
Some services deserve a public hostname. Most admin surfaces do not.
##Networking: Private First, Public Only When Needed
My networking rule is simple: admin access should be private by default.
I use Tailscale for remote access to internal services. That gives me a private mesh network between my devices and the home server without opening random ports to the internet.
Cloudflare Tunnel is reserved for services that genuinely need public hostnames. It creates an outbound tunnel, so I do not need to port forward through the router.
The split looks like this:
- Proxmox: private
- Portainer: private
- Pi-hole: private
- Filebrowser: private
- Databases: private
- Public-facing apps: only if there is a reason
Filebrowser is a perfect example. It is incredibly useful, but it has write access to files. That makes it an admin surface, not something I casually expose to the internet.
##Pi-hole + Tailscale: Ad Blocking Away From Home
Pi-hole handles DNS-level blocking at home. Tailscale makes that DNS server reachable when I am away.
Together, they let tailnet devices use my home DNS filtering from anywhere.
The basic pattern is:
- Run Pi-hole on the home server or LXC.
- Run Tailscale on the same host or network services container.
- Add the Pi-hole host’s Tailscale IP as a custom DNS server in Tailscale.
- Enable DNS override for tailnet devices.
This will not block every ad on the internet. DNS blocking has limits, especially with apps that hardcode DNS, use encrypted DNS, or serve ads from the same domains as content.
But it is still one of the most satisfying “small infrastructure” wins in a homelab.
##Storage Layout: Make Future You Less Angry
The storage layout is not glamorous, but it is the part that keeps the system understandable.
The guide uses a simple split:
/media/musicholds the music library used by Navidrome and Filebrowser./media/paperlessholds Paperless documents, consumed files, exports, and related data./media/saveholds game-related save data for RoMM./mnt/storage/appdataholds per-application configuration and persistent app state, such as Navidrome and Filebrowser data.
The idea is to separate:
- Media and user data
- App configuration
- Container runtime state
- Databases
- Backups
When something breaks, this makes troubleshooting easier. You can ask:
Is the app broken?
Is the container broken?
Is the data missing?
Is the mount wrong?
Is it just permissions?
Those questions are much easier to answer when everything is not dumped into one mystery directory.
##Backups: The Part That Stops This From Being Just a Toy
Backups are where a homelab becomes real.
The guide covers Proxmox backups for LXCs and VMs, plus backups of bind mounts and appdata. But the more I run this setup, the more I think in layers:
1. Proxmox Backups
These are useful for restoring entire LXCs or VMs.
If the Portainer LXC breaks, a Proxmox backup can bring the whole environment back quickly.
2. File and Appdata Backups
These protect the mounted data:
/media/music
/media/paperless
/media/save
/mnt/storage/appdata
This layer matters because sometimes you do not want to restore an entire LXC. You just want the data.
3. Database Dumps
Database-backed apps need logical backups.
For example:
docker exec -t postgres pg_dumpall -U paperless > postgres-backup.sql
docker exec -t romm-db mariadb-dump -u root -p romm > romm-backup.sql
Copying database files while a database is running is not the same as having a clean backup.
4. Offsite Backups
For things like Immich and Paperless, local backups are not enough.
These are exactly the services where offsite backups make sense. Tools like rclone, restic, or kopia can back up to S3-compatible storage providers. The exact provider matters less than the backup properties:
- Encrypted before leaving your server
- Versioned or snapshot-based
- Automated
- Monitored
- Tested with real restores
The restore test is the part everyone wants to skip, including me. But a backup you have never restored is more of a hope than a backup.
##What Happens When You Need to Nuke Something?
This is the part nobody talks about enough.
Yes, I have had to rebuild things.
The pain level depends almost entirely on whether the data was separated properly.
If a service stores everything inside an unnamed Docker volume, and you do not know where that volume is or what it contains, rebuilding feels dangerous.
If the service has:
- A compose file
- A
.envfile or documented environment variables - A mounted appdata directory
- A mounted media/data directory
- A database dump
then rebuilding is annoying, but manageable.
The usual problems are not dramatic. They are boring:
- File permissions
- Wrong UID or GID
- Missing environment variables
- Changed image versions
- Database migrations
- Mounted the wrong folder path
That is why boring infrastructure is good infrastructure.
##Security: Expose Less Than You Think
My security posture is not complicated:
- Do not expose Proxmox publicly.
- Do not expose Portainer publicly.
- Do not expose databases publicly.
- Treat Filebrowser like an admin tool.
- Use Tailscale for private access.
- Use Cloudflare Tunnel only where public access makes sense.
- Change default credentials immediately.
- Keep secrets out of Git.
- Use strong unique passwords.
- Enable 2FA where supported.
The mistake I try to avoid is turning every successful self-hosted app into a public subdomain.
Just because something can be exposed does not mean it should be exposed.
##What I Would Tell Myself Before Starting
If I could go back to the day I bought the server, I would give myself a shorter list:
- Start with the storage layout.
- Keep appdata and media outside containers.
- Learn the difference between VMs and LXCs early.
- Use Tailscale before exposing things publicly.
- Do not trust a backup until you restore it.
- Keep compose files in Git.
- Write down what each service depends on.
- Use boring defaults unless you have a real reason not to.
- Learn permissions slowly, because permissions will absolutely find you.
- Do not build for imaginary scale before the first version works.
The goal is not to create the most impressive dashboard screenshot. The goal is to build a server you understand well enough to fix.
##The Guide
I put the full setup here:
https://github.com/junaydirfan/ultimate-selfhosted-homelab
It includes:
- Proxmox setup notes
- LXC explanations
- Alpine vs Ubuntu notes
- Docker and Portainer setup
- Compose examples
- Navidrome + Filebrowser music workflow
- Paperless-NGX + AFFiNE
- RoMM
- Karakeep
- Nginx Proxy Manager
- Tailscale
- Cloudflare Tunnel
- Pi-hole
- Backups
- Security checklist
- Troubleshooting
- Storage layout
It is not a perfect universal blueprint. It is a real setup that grew from me buying my first home server, breaking things, learning what mattered, and trying to document the parts that most guides skipped.
If you are moving from “I have a few Docker containers on a VPS” to “I want a proper home server,” the main lesson is this:
Do not start with the app list.
Start with the architecture.
Ask where the data lives, how you restore it, how you reach it securely, and what happens when you have to rebuild it.
The compose files matter. But the system around them matters more.
##Transparency Note
I used AI tools to help polish parts of the README and organize this article draft. The actual homelab setup, service choices, compose files, workflows, mistakes, and lessons are from my own server and experience.