Amine Bioudi · #homelab

What runs on my NAS (and the app I built to replace one)

How I set up Immich, Nextcloud, Jellyfin and Pi-hole on my UGREEN NAS with Docker, and why I tried to build my own Immich in one night.

My subscriptions were getting too expensive. So I bought a NAS, a UGREEN DXP4800 Plus, and started running my own apps at home.

Right now it runs four apps. Immich for photos, Nextcloud for files, Jellyfin for movies and Pi-hole to block ads for the whole house.

Later I looked at what other people run on their homelab. Same list. Immich, Nextcloud, Jellyfin, Pi-hole. So I’m not very original.

How I set up the apps

UGOS, the system on the NAS, has a Docker app. In it you can create a “project”. A project is just a folder with a docker-compose.yaml file in it.

So every app gets:

  1. its own folder in the docker share
  2. a docker-compose.yaml in that folder
  3. its data in the same folder

Then you create the project and it runs.

I like this because each app is on its own. I can stop one, update it or delete it, and the others don’t care. Setting up the first app was easy. Honestly, nothing to complain about.

One thing I learned the hard way: the latest tag. One night I opened Nextcloud and got an “Update needed” page instead of my files. The container had started on a new version by itself, but the database upgrade never ran. I had to run it by hand from the command line.

I tried to build my own Immich

Immich is great but it’s heavy. On my NAS it uses more RAM than all the other apps together.

So one night I asked myself: can I build something better? Something simple. One database file, no Postgres, easy to install. Maybe even a product one day, with paid features.

I built it that night. I called it Shoebox. A web app in two containers, with SQLite as the database. Upload, timeline, albums, favorites, trash.

Then the questions started. How many GB can it handle? It was loading every upload in memory, so a big video would crash it. I changed it to stream uploads straight to disk and tested it with a 3.5 GB file. Memory stayed around 100 MB.

The API container was 1 GB. Too big for a photo app. I slimmed it down.

Then I made it open source, wrote a README so my friends can run it on their own NAS, and published the Docker images. To test it, I installed it on my NAS like a new user would, straight from the GitHub repo.

Two days later I deleted it. Immich has years of development behind it, and I had one night. Not worth reinventing the wheel.

Immich is still here.

What’s next

I’m looking at ways to watch YouTube without ads on the NAS, and maybe music streaming.

← all posts