For a self hosting solution I'd recommend gitea: it's a single go binary that needs almost no installation (only a config file), it's very fast, updates work great (replace previous binary and restart), supports ldap and has all the features of GitHub your love and even various features that free GitHub does provide (ie branch protection for private repos).
For those who don't know, Forgejo is a fork of Gitea.
It's linked in the readme, but I want to highlight the demo video [0], where Grant explains how he works with Manim.
[0] https://www.youtube.com/watch?v=rbu7Zu5X1zI