minimal-git-server — Self-Hosted, Open-Source

Lightweight git server with a basic CLI to manage repositories, supporting multiple accounts and running in a container.

License: MIT. Built with: Shell, Dockerfile. Source: https://github.com/mcarbonne/minimal-git-server.

Features

Installation

docker run -v .../ssh:/srv/ssh -v .../git:/srv/git -v .../config.yml:/srv/config.yml:ro \ --name minimal-git-server -d -p 20222:22 ghcr.io/mcarbonne/minimal-git-server:2

Why self-host minimal-git-server

Self-hosting gives you three things SaaS can’t: data ownership (the files live on disks you control), cost predictability (a one-time setup vs. recurring per-seat fees that grow with your household or team), and longevity (open-source means the app keeps working even if the maintainers move on, since you can pin a working version). The trade-off is that you take on the operational work of running a server, applying updates, and handling backups.

What hardware do you need

Most self-hosted apps run comfortably on modest hardware — a Raspberry Pi 4, a mini PC, a NAS with Docker support, or a small VPS is usually enough for personal or family use. CPU and RAM requirements scale with how many simultaneous users or how much data you push through minimal-git-server. Storage requirements depend on the kind of data you keep; check the README for guidance on data retention.

Where to go from here

Last verified: 2026-05-22