Sign inSign up

castlemilk/git-http-backend

By castlemilk

•Updated over 1 year ago

git http server with basic auth. Used for testing purposes

Image
Integration & delivery
Developer tools
Web servers
0

1.9K

castlemilk/git-http-backend repository overview

⁠Git HTTP Backend Server

A lightweight Git HTTP backend server with basic authentication support, packaged as a Docker container. Perfect for hosting Git repositories over HTTP with password protection.

⁠Quick Start

# Pull the image
docker pull git-http-backend:latest

# Run the container
docker run -d \
  -p 3000:3000 \
  -v /path/to/repos:/tmp/git \
  -e GIT_USERNAME=admin \
  -e GIT_PASSWORD=secret \
  git-http-backend:latest

⁠Features

  • 🔒 Basic authentication support
  • 📤 Git receive-pack and upload-pack support
  • 🐳 Lightweight Alpine-based image
  • ⚙️ Configurable via environment variables
  • 📁 Persistent repository storage via volume mounts

⁠Environment Variables

VariableDefaultDescription
GIT_PORT3000Server port
GIT_USERNAMEtestuserBasic auth username
GIT_PASSWORDtestpassBasic auth password
GIT_REPO_NAMEtest-repoDefault repository name

⁠Usage with Git

# Clone
git clone http://localhost:3000/repo.git

# Push
git push http://localhost:3000/repo.git main

⁠License

MIT License

Tag summary

Content type

Image

Digest

sha256:38c38edb7…

Size

15.6 MB

Last updated

over 1 year ago

docker pull castlemilk/git-http-backend