I've been running my own server for about a year now. Here's the complete walkthrough of how I set it up from scratch.

Prerequisites

Ubuntu 24.04, 2GB RAM minimum, Docker installed.