https://github.com/j-p-d-e-v/private-git-server
Host your own private git server.
https://github.com/j-p-d-e-v/private-git-server
bash docker git git-server private-git-server
Last synced: 9 months ago
JSON representation
Host your own private git server.
- Host: GitHub
- URL: https://github.com/j-p-d-e-v/private-git-server
- Owner: j-p-d-e-v
- License: mit
- Created: 2023-07-30T04:10:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-02T16:27:33.000Z (over 2 years ago)
- Last Synced: 2025-03-17T10:55:01.336Z (9 months ago)
- Topics: bash, docker, git, git-server, private-git-server
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Private Repositories
This is a simple way to host your private git repositories. It both supports ssh and http.
```
I might possibly continue developing this like adding frontend UI etc..
```
# Build
```
docker build . -t
```
# Configuration
## Environment Variables
You can set the environment variables at the .env file.
- ROOT_PASSWORD - The assigned password for the root account.
## Volumes
- /var/git - Is the default or working directory where the repositories are placed.
- /tmp/ssh-keys - Is the directory where the external machine ssh keys are stored.
# Deploy
The docker-compose.yml will automatically build the image ```git-server:latest```.
To run:
```
docker-compose up -d
```
# Examples
## Clonng
**via HTTP**
```
git clone http:///repositories/
```
Example:
```
git clone http://192.168.0.2:5080/repositories/myrepo
```
**via SSH**
Format:
```
git clone ssh://root@:/var/git/
```
```
git clone ssh://root@192.168.0.2:2/var/git/myrepo
```
# API
The server exposes a swagger documentation. You visit the swagger page at:
```
http://:5080/api/docs
```
# Developer
- JP Mateo