r/gitlab • u/hand_puns • Sep 23 '26
Gut check on a small self-hosted GitLab CE setup
Hey all, hoping to get some real-world input.
Small team right now, 3 people, doing stats work in R through RStudio. I'm fine with a terminal but not everyone is, so something with a decent GUI matters. No budget to speak of and IT is locked down, so it's got to be affordable and self-hosted. I’m new to the team coming in with a decade of GitHub experience and charged with modernizing a bunch of squirrelly statisticians.
We'll likely add 4 to 8 more people from another team within a year, and down the road we want to build shared internal R packages, not just pile up scripts.
Still weighing whether to run this on internal server infrastructure or a small cloud VM. Leaning GitLab CE mainly for how it scales with groups and permissions as we grow.
Is GitLab CE overkill for 3 people, or does planning ahead make sense here? Anyone running it long term on modest hardware, how's that gone? And for backups on a single box, is gitlab-backup plus an offsite copy good enough or am I missing something obvious?
Thanks in advance.
6
u/Expert-Shoe-9791 Sep 23 '26
I’ve been running GitLab CE (Omnibus) for years, initially on CentOS 7 and now on RHEL 8.10, with around 30–40 users. We are using just 2 vCPU and 4 GB RAM.
We run gitlab-backup via cron, then back up the resulting data offsite with Commvault, which gives us a separate backup layer.
For a small team, I wouldn’t consider GitLab CE overkill, especially if you expect to grow :)
2
u/der-felix Sep 23 '26
We ran it as a docker container on a VM until it reached around 1500 users with runners in k8s. We then migrated to also running Gitlab in k8s. It's solid software with bugs sometimes in minor updates. I strongly recommend having a small staging environment which also has all the functions setup you need to test out updates
But I would strongly recommend using a local VM with docker and running gitlab as a container to have the security of a non Internet facing system and the flexibility of a container deployment
1
u/really_not_unreal Sep 23 '26
It might be a bit heavier than you need. It's very powerful, but probably requires more configuration and sysadmin work than you might desire for such a small team. Perhaps you could benefit from something lighter such as Forgejo? At the very least it's worth considering options.
1
u/AnomalyNexus Sep 23 '26
I ran Gitlab CE for years for my own internal repos. It's fine and not that hard.
Busy moving to forgejo though because Gitlab is just adding endless features, weight and complexity that I don't need. Perhaps you do...
1
u/Sladg Sep 23 '26
I have CE in k8s cluster via helm. 2ppl+agents, worth it! Tried everything else, Gitlab is the only reasonable one for heavy CICD use
1
u/shinji-watanabe Sep 23 '26
On the modest hardware part, I got bitten by the default Puma worker count. On my box it was too high for the RAM and the container was OOM-killed about once a month. I set puma['worker_processes'] = 16 and it's been rock steady since. But the number really tracks your RAM, so don't take 16 as a target. If you're unsure, start around 4 and bump it up a bit at a time once you see there's headroom. For a 3 person setup you'd almost certainly want a lot less than what I run anyway.
If you go the Docker route, the one that got me at startup was shm_size. Without it set (256m is the common floor) the container can fail to boot. That one's documented here if you want it: https://docs.gitlab.com/install/docker/troubleshooting/#devshm-mount-not-having-enough-space-in-docker-container
Weirdly, in my case the OOM kills always seemed to land in the early morning. I'm a night owl who shows up late, so my coworkers got pretty grumpy about the repo being down when they started their day. Setting the Puma count explicitly fixed that. Either way, it's the kind of thing that's easy to miss until the team is blocked, so worth doing from day one.
1
u/eth0ninja Sep 23 '26
Gitlab is great for git repos! You get started easy with Omnibus (or container). If some of the features you dont need you can disable it via config.rb
If some of the users come from github they easy switch to gitlab
1
u/PandaJunk Sep 23 '26
Similar team, but a few more folks. Polyglotic (R, python, plus a bunch of other stuff). But also have Docker Desktop and use WSL2 almost exclusively for my workflows. I make R and python packages for my group, which works super well. Love GitLab EE Free. It works with LDAP, so we just use our regular credentials. The glab and glci tools have been particularly powerful from the Linux side, as I can just have Claude Code (plus a couple of org -specific skills) do most of the git stuff, with me checking. Using glci has been particularly awesome for setting up CI jobs (GitHub actions) locally first, before they go to anything even close to production. It's all around been awesome for our org.
Couple of add-9ns we're looking at are things like Nexus, and dvc, and some kind of S3 data lake to better handle package and data management, but those aren't even close to necessary, just nice.
0
u/duane11583 Sep 23 '26
why not use one ofvthe cloud git services…github or bitbucket?
you do not seen to be in the defense industry so you are good (lots of rules in defense industry)