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?

3 points

Why do you want that? Plain git can do everything you actually need.

permalink
report
reply
46 points

What? Gitea. Gitlab is a complete devops platform. Awesome, but complete overkill.

Why? Because I regularly commit code atrocities and have a hard enough time dealing with imposter syndrome, I don’t need to add public shaming on top of it (And just data sovereignty I guess)

permalink
report
reply
4 points

Gitlab can be registration only, so noone else can see your code crimes (when self-hosted)

permalink
report
parent
reply
4 points

Code crimes. It’s kind of a weird feeling to not know you are guilty of something until you see a name for it.

permalink
report
parent
reply
3 points

No worries! I wasn’t judging 😬

permalink
report
parent
reply
2 points

If people could see my code crimes, I would be in code jail for life.

permalink
report
parent
reply
1 point

I’m sure I’ve committed many code crimes. But the one that should send someone to jail that I’ve personally seen was when I found an eval in production code that was actively being exploited. Put up a PR to fix it and was given a very hush hush meeting that it was there intentionally to fix production data issues secretly because the bureaucracy made it hard to do lol. I just kept my mouth shut and eventually used it once myself.

permalink
report
parent
reply
54 points

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.

permalink
report
reply
11 points

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

permalink
report
parent
reply
2 points

It’s coming to Gitlab too! (although, this will take quite some time)

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
-1 points

I imagine users, comments and perhaps pull requests.

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
9 points

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)

permalink
report
parent
reply
3 points

I’d probably just run gitlab and use the gitlab images, as that’s one of the solutions git recommends

permalink
report
reply
8 points

Another +1 for gitea. It works quite well and is easy to setup.

permalink
report
reply

Selfhosted

!selfhosted@lemmy.world

Create post

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.

Resources:

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

Questions? DM the mods!

Community stats

  • 5K

    Monthly active users

  • 3.6K

    Posts

  • 81K

    Comments