minimal-git-server
Lightweight SSH-only Git server packaged as a container
minimal-git-server is a small, SSH-based Git server provided as a container image. It exposes repositories over SSH and is controlled via simple CLI commands mapped to SSH subcommands, with accounts and keys defined in a single YAML configuration.
Key Features
- SSH-first Git hosting with repositories stored on a mounted data volume
- Single YAML config file to define accounts, UIDs and allowed public keys
- CLI-style repository management via SSH commands (list/create/rename/remove)
- Lightweight implementation using shell scripts and a container image for Docker/Podman
- Persists server SSH keys and repositories on host-mounted volumes for easy backups
- Designed to be scriptable and automatable from CI or local scripts
Use Cases
- Host private Git repositories for small teams or personal projects on a local server
- Provide simple Git endpoints for CI pipelines or automation scripts that need push/pull access
- Quickly spin up ephemeral or lab Git servers for testing and demos without heavy tooling
Limitations and Considerations
- SSH-only access model; no built-in HTTP(S) or web UI for repository browsing or management
- Minimal access control: permissions are account-level via config and SSH keys; no fine-grained per-branch ACLs or web-based management
- Not a full forge: lacks features such as issues, pull-request UI, user management UI, or built-in hook management beyond raw Git hooks
minimal-git-server is intended for situations that need a simple, containerized Git endpoint with easy scripting and minimal operational overhead. It is best suited to small teams, automation scenarios, and homelab use where advanced forge features are unnecessary.
Categories:
Tags:
Tech Stack:
Similar Services

Gitea
Self-hosted Git hosting with code review, issues, and CI/CD
Gitea is a lightweight, self-hosted Git service with repositories, pull requests, issues, wiki, packages, and built-in CI/CD via Actions and runners.

Gogs
A painless self-hosted Git service.
Lightweight, open source self-hosted Git service designed for easy installation across platforms.

OneDev
Self-hosted Git server with CI/CD, issue tracking, and package registries
OneDev is a self-hosted DevOps platform combining Git hosting, CI/CD pipelines, Kanban-style issue tracking, code review, and built-in package registries.

GitBucket
Git web platform with GitHub API compatibility and plugins
GitBucket is a self-hosted Git web platform for managing Git repositories with issues, pull requests, wikis, Git LFS support, and a plugin system.

Soft Serve
Self-hosted Git server with an SSH-accessible terminal UI
Self-hostable Git server focused on SSH, featuring a terminal UI, access control, and Git LFS support, with cloning via SSH, HTTP, or the Git protocol.

Review Board
Web-based code and document review platform
Review Board is a web-based tool for code and document reviews, with rich diff viewing, threaded discussions, and integrations with many version control and CI systems.
Docker
Linux
Bash