git http server with basic auth. Used for testing purposes
1.9K
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.
# 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
| Variable | Default | Description |
|---|---|---|
GIT_PORT | 3000 | Server port |
GIT_USERNAME | testuser | Basic auth username |
GIT_PASSWORD | testpass | Basic auth password |
GIT_REPO_NAME | test-repo | Default repository name |
# Clone
git clone http://localhost:3000/repo.git
# Push
git push http://localhost:3000/repo.git main
MIT License
Content type
Image
Digest
sha256:38c38edb7…
Size
15.6 MB
Last updated
over 1 year ago
docker pull castlemilk/git-http-backend