If you are looking for a self-hosted git system, I highly recommend Gitea. Very lightweight and an order of magnitude easier to install and maintain. I am super impressed.
Gitea has a ton of issues, sadly. We self-hosted an instance where we had a number of mirrors and whatnot to have redundant copies of third-party dependencies. The server would deadlock, mirror tasks would time out and then couldn't be restarted, etc.
We filed an issue (or maybe two) and the developers were... eh. A bit rude, to be honest. Dismissive that it was really an issue, where restarting and deleting/re-configuring was a massive PITA.
Therefore, I can't really rec Gitea myself. I wish something like it existed though. That's for sure. Gitlab is just too bloated for my taste and our needs.