this post was submitted on 11 Mar 2026
73 points (98.7% liked)

Selfhosted

57575 readers
1367 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

Update

Forgejo seemed to be the winning answer so I tried setting it up. Total setup time was less than 10 minutes. I pushed 10 repositories to test it out and so far it seems pretty good. Thank you everyone for the answers!


As the title states, I am looking to host maybe ~100 git repositories locally on my home network.

I'm not planning on doing anything too crazy with my repositories. The solution doesn't need to support like 1000s of contributors however it should support the most basic features such as being able to see individual commits, branches, diffs, maybe some PR related mechanism, a web GUI, etc.

I don't like to tinker too much. The solution should work and be stable. Stability is a hard requirement. I want to write code and not have to worry about losing it. Yes I will make backups.

Please let me know what some of the best options are at the moment. Thank you!

top 43 comments
sorted by: hot top controversial new old
[–] lime@feddit.nu 44 points 4 days ago (1 children)

if it wasn't for the webui, a bare git repo would suffice. any repo can be a remote. it's distributed, after all.

[–] Serinus@lemmy.world 3 points 4 days ago (2 children)
[–] PotatoesFall@discuss.tchncs.de 2 points 4 days ago (1 children)

forgejo supports woodpecker CI I thought?

[–] eodur@piefed.social 7 points 4 days ago (1 children)

Why not forgejo's built in ci/cd? Its worked great for me so far?

I didn't even know that's a thing! Looks like it's somewhat new. What a time to be alive!

[–] DaPorkchop_@lemmy.ml 1 points 4 days ago

Jenkins has fairly solid Gitea/Forgejo integration :)

[–] thirdBreakfast@lemmy.world 22 points 4 days ago

Forgejo + Tailscale. Forgejo is the app behind Codeberg so it's battle tested. I switched to it from Gitea after the controversy.

[–] whelk@retrolemmy.com 17 points 4 days ago

I finally decided to make the move off github a couple weeks ago and ended up self hosting with Forgejo. It was really easy to set up, and my buddies and I are loving it. Provides a robust web interface and handles pull requests with automatic merges and all that. I haven't had any issues thus far

[–] theunknownmuncher@lemmy.world 11 points 4 days ago

Forgejo is the way

[–] xombie21@lemmy.dbzer0.com 10 points 4 days ago (2 children)

Gitea is the answer, configure/install with docker. I have had mine going for a few years now and haven't had to touch it besides updating the docker container which I automated.

[–] lime@feddit.nu 11 points 4 days ago (2 children)

why gitea instead of forgejo?

[–] SpaceNoodle@lemmy.world 9 points 4 days ago* (last edited 4 days ago) (1 children)

Why forgejo instead of gitea?

[–] Creat@discuss.tchncs.de 11 points 4 days ago* (last edited 4 days ago) (1 children)

Forgejo was soft forked from Gitea after they went commercial and changed the license (I think). If there aren't any so far, expect pay walled features eventually.

Forgejo turned into a hard fork after communication issues between the teams. I haven't looked too deeply into it (as I don't really care about the fact that it's a hard fork now). This means while it used to be a drop-in replacement allowing you to go back and forth between the two, it's now an active conversion, I think.

[–] SpaceNoodle@lemmy.world 11 points 4 days ago* (last edited 4 days ago) (1 children)

Thanks for answering my question instead of only downvoting like half the other chuckleheads. Guess I'll migrate to Forgejo if my Gitea instance ever gets too old.

[–] moonpiedumplings@programming.dev 3 points 4 days ago (1 children)

You should probably migrate now, forgejo is currently a soft fork that is fully compatible, but in the future they are planning to hard fork and not be compatible. Well, they are in the process of doing so right now.

[–] SpaceNoodle@lemmy.world 1 points 4 days ago

Good to know, I'll look into it this weekend.

[–] xombie21@lemmy.dbzer0.com 2 points 3 days ago

Forgejo didn't exist when I installed gitea.

[–] SpaceNoodle@lemmy.world -2 points 4 days ago (2 children)

Same, but fuck the docker overhead

[–] kill_dash_nine@lemmy.zip 0 points 4 days ago (1 children)

Just curious - what do you mean by the docker overhead?

[–] SpaceNoodle@lemmy.world 2 points 4 days ago

CPU, RAM, disk space, network translation, management abstraction, buried logs ...

[–] RIotingPacifist@lemmy.world -1 points 4 days ago

Didn't use docker then fairly sure there is a Deb for it.

[–] cecilkorik@piefed.ca 7 points 4 days ago

I love Forgejo, I'm glad you are happy with it too. Their upgrade process is pretty minimal/straightforward (at least it has been so far) and their runner configuration is a bit heavy to set up initially (I maybe took the security recommendations a bit too intensively despite the fact that I'm running a completely private site, but allowing systems that run arbitrary commands automatically is legitimately a bit intimidating) but has been really nice and reliable now that it's working.

[–] aegg@europe.pub 6 points 4 days ago

I've used Gitea before, Frogejo also looks pretty good

[–] chtk@sh.itjust.works 5 points 4 days ago

If you're looking for a bare bones solution, and you already have a machine that you can SSH into, you could just use that. There are desktop GUI/TUI apps galore that you can use to inspect commits, branches and such.

At work I'm in the process of planning a move from Subversion to Git. So I've been looking at Forgejo, a hard fork of Gitea maintained by Codeberg. It has all the important features of other forges like GitLab and Gitea. But is completely open source.

[–] slowtrain33@lemmy.ml 4 points 4 days ago

I’ve set up a few gitlab servers at companies and it’s always been well received. Doing it from scratch may be more complex than you want, but I think there are docker images for a more turnkey type solution. And the option of building CI/CD pipelines in the future is always nice to have.

[–] DFX4509B@lemmy.wtf 4 points 4 days ago (1 children)

Just host a bare git repo.

[–] idunnololz@lemmy.world 2 points 4 days ago* (last edited 4 days ago) (1 children)

I'd prefer it to have a website UI just in case I want to take a quick look at something when I'm not home.

[–] frongt@lemmy.zip 0 points 4 days ago (1 children)

Over a VPN, right? I always recommend not exposing services to the Internet if you can avoid it.

[–] idunnololz@lemmy.world 4 points 4 days ago* (last edited 4 days ago)

Jokes aside, yes.

[–] fizzle@quokk.au 3 points 4 days ago

Forgejo seemed to be the winning answer so I tried setting it up. Total setup time was less than 10 minutes.

Just a heads up... I haven't looked at this since forever ago (when foregjo was gitea), but make sure you have a restore plan. I think there's a dump command but no restore.

[–] tal@lemmy.today 3 points 4 days ago
[–] litchralee@sh.itjust.works 3 points 4 days ago

I second the option of Git + SSH. That will scale to one hundred repos. And if you don't want the repos to be checked out, use "git clone -n" to not do that. It'll just be dozens of repos which only have the minimal .git/ directory. All other repos that specify this one as the upstream will have no issues pulling or pushing code.

You won't have PR features nor a web UI though.

[–] ppb1701@ppb.social 2 points 4 days ago

@idunnololz I'm running gitea and tailscale. Sadly I had not heard of Forgejo at the time or I might have went with it instead. (Might switch over if i get bored or an itch one afternoon). Works great for me though.

[–] corsicanguppy@lemmy.ca 2 points 4 days ago (1 children)

It's monstrous, but gitlab installs from one big RPM on a base box; and with one config file you're up.

[–] foggy@lemmy.world 0 points 4 days ago (1 children)

While I agree, out of the box the configs ARE NOT for home lab use.

[–] corsicanguppy@lemmy.ca 1 points 21 hours ago (1 children)

For sure. And their bumbling has made it harder to deactivate all the useless bloat and get the good web-editor back. And a host of other mind-numbingly short-sighted decisions that show they're fully run by LostBoy coders who were never mentored and just don't know better.

But tuning can come after. And their CI is way fucking better than forgejo's facepalm of a GitHub clone. And that's a thin reason, but, yeah.

[–] foggy@lemmy.world 1 points 21 hours ago

Yep.

It's like they wanna get bought to compete with GitHub or something.

They're moving fast and breaking things. And bloating their product in the process. In the last 24 months they paid over $1M to a single bug bounty hunter who basically took them to the cleaners.

But totally agree. It's the best UX, best product for home lab or even small enterprise use if you've got someone to get it tuned appropriately.

[–] mesamunefire@piefed.social 2 points 4 days ago

If all of the below doesnt work out, you can host git by itself. I did that at an office once.

https://gist.github.com/Kreijstal/28fc987270b71849505bbc89b3f2d90a steps look correct.

But for me forgejo worked out well for my side projects and mirroring.

[–] ryokimball@infosec.pub 2 points 4 days ago (1 children)

Surely this is the correct answer.

GitLab is awesome and has good CI-CD

[–] msokiovt@lemmy.today 1 points 4 days ago

I'd go for Forjego or Gitea.

[–] First_Thunder@lemmy.zip 1 points 4 days ago

I personally don’t host yet anything, but do know of a friend with a functional Gitea at home

[–] Decronym@lemmy.decronym.xyz 0 points 4 days ago* (last edited 21 hours ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
Git Popular version control system, primarily for code
SSH Secure Shell for remote terminal access
VPN Virtual Private Network

3 acronyms in this thread; the most compressed thread commented on today has 9 acronyms.

[Thread #157 for this comm, first seen 11th Mar 2026, 23:20] [FAQ] [Full list] [Contact] [Source code]