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!

  • cecilkorik@piefed.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    3 hours 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.

  • lime!@feddit.nu
    link
    fedilink
    English
    arrow-up
    25
    ·
    edit-2
    6 hours ago

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

    forgejo is the most popular choice right now.

    if you wanna be extra you can host git-pr

    • fizzle@quokk.au
      link
      fedilink
      English
      arrow-up
      1
      ·
      4 hours ago

      I would like to use bare repos because I don’t share with anyone else and don’t really need the web-ui for issues or wikis or anything.

      However, I need git-lfs and if I understand correctly, that doesn’t wont work with a bare repo over ssh.

      I was using gitea a while back and they had a way to dump repos and db, but there didn’t seem to be a way to restore. That being the case I switched to gogs which has been great. It was only recently I learned that gogs wasn’t very active and there was some kind of security breach. Mine is only accessible on my LAN so not particularly worried about security.

      Anyhow, looking at forgejo now it seems like there still isn’t a great way to restore from backup? I guess that might not matter to me if I’m only interested in the repos and no comments or other stuff that might be in the database.

  • whelk@retrolemmy.com
    link
    fedilink
    English
    arrow-up
    22
    ·
    6 hours 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

  • xombie21@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    12
    ·
    6 hours ago

    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.

        • Creat@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          11
          ·
          edit-2
          4 hours ago

          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
            link
            fedilink
            English
            arrow-up
            9
            ·
            edit-2
            4 hours ago

            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
              link
              fedilink
              English
              arrow-up
              3
              ·
              2 hours ago

              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.

  • Patrick@ppb.social
    link
    fedilink
    arrow-up
    1
    ·
    4 hours 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
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 hours ago

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

  • fizzle@quokk.au
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 hours 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.

  • chtk@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 hours 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.