Self-hosted GitHub alternative?

damnthefilibuster@lemmy.world to Selfhosted@lemmy.world – 109 points –

Folks,

I'm looking for a self-hosted GitHub alternative that I can just plop into Portainer as a docker-compose and get working.

My main interest is in something that sort of works with GitHub - if there's a way I can pull repos from GitHub into this self-hosted git using a webUI and maybe even push my changes to repos on GitHub, that would be nice. I'm not hard-and-fast on this though as this is mostly an experiment right now and I don't know why I need this.

What are you folks using to host your super secret local code and why?

49

You are viewing a single comment

Have a look at Forgejo which is a soft fork run by a nonprofit organization of Gitea which is owned by a for-profit company.

https://forgejo.org/

It need very little system resources and still gives you all the common features you know from commercial Git hosting providers.

And yes, you can mirror existing Git repos using a web UI.

I also recommend forgejo. They are also working on adding a federation feature to forgejo just like Lemmy has!

What does federation do here? Will it sync repos? Or just users and comments?

I imagine users, comments and perhaps pull requests.

And forgejo runner is basically github actions, I just started automating a lot of my personal projects. (it's in alpha state, but my basic actions haven't had any problems)

I also recommend forgejo, I've been using it for a while for my personal projects and the ui is still beautiful while being a simple git server at the same time.