this post was submitted on 23 Nov 2024
40 points (95.5% liked)

Selfhosted

58123 readers
812 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
 

I’ve started building a small decentralized, non commercial app with a Rust backend + Node.js frontend running on k8s. I would have my own dedicated server for this. Just mentioning the setup because it might grow and for git there seem to be only GitHub and GitLab around and I prefer GitLab.

I care a lot about security and was wondering if it makes sense to self-host GitLab. I‘m not afraid of doing it, but after setup it shouldn’t take more than 1-2 hours per week for me to maintain it in the long run and I’m wondering if that’s realistic.

Would love to hear about the experience of people who did what I’m planning to do.

EDIT: Thanks for all the answers, trying my best to reply. I want CI/CD, container registry and secrets management that's what I was hoping to get out of GitLab.

you are viewing a single comment's thread
view the rest of the comments
[–] l_b_i@pawb.social 59 points 1 year ago (6 children)

For self hosting there is also https://forgejo.org/ which is a fork of https://about.gitea.com/ , the latter of which started to shift to a corporate model.

[–] alwayssitting@infosec.pub 25 points 1 year ago

Previous Gitea user and now Forgejo, and yeah it's a great git server. Simple, lightweight but still very capable.

Another upvote for forgeo. So easy to get set up and running. Can run it in docker itself. I tried to host gitlab and got so frustrated with the pages and pages of ruby configs. Forgejo is so much cleaner.

[–] BaalInvoker@lemmy.eco.br 6 points 1 year ago (1 children)
[–] neshura@bookwormstory.social 17 points 1 year ago (2 children)

technically the same as forgejo, codeberg is the main forgejo contributor/the org owning it

[–] BaalInvoker@lemmy.eco.br 3 points 1 year ago

Oh! Is it?

Well, living and learning haha

[–] BlastboomStrice@mander.xyz 1 points 1 year ago (2 children)

Quick question: forgejo is the git program that you can install self host a git server, while codeberg is probably the biggest forgejo-kind git server that is open to the public, right?

I dont have a home server to host forgejo (yet?), so I'm thinking of making an account on codeberg, is that correct reasoning?

[–] neshura@bookwormstory.social 2 points 1 year ago (1 children)

Pretty much yes, codeberg integrates some additional services and branding on top (such as codeberg-pages for static page hosting or forgejo-runners for CI) but you can integrate those yourself as well, it's just extra work.

If you're looking for an open alternative to github/gitlab codeberg is imo definitely the way to go

[–] BlastboomStrice@mander.xyz 1 points 1 year ago

Yo thank youu:)

[–] Lem453@lemmy.ca 2 points 1 year ago

I did an inplace upgrade of gitea to forgejo. No issues.

I've been self hosting this for 2 or 3 years now.

There has been zero maintenance other than the occasional update button

I use it for my docker compose files that portainer pulls from with the click of the button to update my containers when needed.

I edit the files in VS code with the git plugin and it works without issue

[–] shaserlark@sh.itjust.works 2 points 1 year ago

Thanks! This looks actually really interesting. Did you try doing CI/CD with it? In future I would probably collaborate with others who'd be also using my self-hosted Git. What would be critical for me is that I can set it up in a way that once I open a PR that branch automatically gets deployed to a dev Kubernetes environment and when I merge with main that it automatically deploys to staging and only when I release a tag the branch would end up in prod. Also I'd like to do secrets management over the platform. I like that Forgejo would be non-commercial and I would prefer it over GitLab if it can do these things well.

[–] Eezyville@sh.itjust.works 1 points 1 year ago

I'd also like to add that Forgejo is working on federation along with GitLab. I think Forgejo will do it first though.