Run a personal, lightweight Git server directly within a container. This tool provides a straightforward way to self-host your repositories using Docker or Podman, configured entirely through a single YAML file. It is designed for simplicity and ease of use, making it ideal for automation and scripting.
Manage your development workflow with a basic but effective command-line interface. You can create, list, rename, and remove repositories by simply logging in via SSH. The server is built to be easily integrated into your existing scripts for automated repository management.
Key features include:
services:
git-server:
image: ghcr.io/mcarbonne/minimal-git-server:latest
container_name: minimal-git-server
restart: unless-stopped
ports:
- "2222:22"
- "8080:80"
volumes:
- ./git-data:/git
- ./ssh-keys:/root/.ssh
environment:
- GIT_ADMIN_USERNAME=${GIT_ADMIN_USERNAME}
- GIT_ADMIN_PASSWORD=${GIT_ADMIN_PASSWORD}GIT_ADMIN_USERNAME=admin
GIT_ADMIN_PASSWORD=your_super_secret_passwordAuto-fetched about 22 hours ago
Auto-fetched about 22 hours ago