I just bought a used Mac Mini late 2012 (last model permitting to upgrade SSD and RAM).
I’ve put 16GB with 2TB SSD.
Running Ubuntu Server on it with Portainer. Got a bunch of docker compose (Alby Hub, Photoprism, Plex, etc).
I got a few articles with tutorials of my build.