jkarlosb / Git Server Docker
Git Server in Docker
Stars: ✭ 218
Programming Languages
shell
77523 projects
Projects that are alternatives of or similar to Git Server Docker
Asterisk
Asterisk PBX in Docker on Alpine Linux. Smallest Asterisk ever! ;)
Stars: ✭ 145 (-33.49%)
Mutual labels: alpine
Docker Github Pages
🐳 Alpine Docker Image for GitHub Pages and Jekyll powered sites
Stars: ✭ 147 (-32.57%)
Mutual labels: alpine
Ssh2docker
🐳 standalone SSH server that connects you to your Docker containers
Stars: ✭ 159 (-27.06%)
Mutual labels: ssh-server
Alpine Sqs
Dockerized ElasticMQ server + web UI over Alpine Linux for local development
Stars: ✭ 183 (-16.06%)
Mutual labels: alpine
Uwsgi Nginx Flask Docker
Docker image with uWSGI and Nginx for Flask applications in Python running in a single container. Optionally with Alpine Linux.
Stars: ✭ 2,607 (+1095.87%)
Mutual labels: alpine
Alpine Node
Minimal Node.js Docker Images built on Alpine Linux
Stars: ✭ 2,402 (+1001.83%)
Mutual labels: alpine
Pieman
Script for creating custom OS images for single-board computers
Stars: ✭ 149 (-31.65%)
Mutual labels: alpine
Docker Elasticsearch Alpine
Alpine Linux based Elasticsearch Docker Image
Stars: ✭ 154 (-29.36%)
Mutual labels: alpine
Alpinejs Devtools
Chrome/Firefox DevTools extension for debugging Alpine.js applications.
Stars: ✭ 199 (-8.72%)
Mutual labels: alpine
Dockerfiles
Phalcon Dockerfiles used for internal purposes.
Stars: ✭ 145 (-33.49%)
Mutual labels: alpine
Wolfssh
wolfSSH is a small, fast, portable SSH implementation, including support for SCP and SFTP.
Stars: ✭ 142 (-34.86%)
Mutual labels: ssh-server
Docker Alpine Python3
The smallest Docker image with Python 3.7 (~57MB)
Stars: ✭ 218 (+0%)
Mutual labels: alpine
Docker Shadowsocks Libev
Build a docker image for shadowsocks-libev with v2ray-plugin, based on Alpine Linux.
Stars: ✭ 208 (-4.59%)
Mutual labels: alpine
Secure Wireguard Implementation
A guide on implementing a secure Wireguard server on OVH (or any other Debian VPS) with DNSCrypt, Port Knocking & an SSH-Honeypot
Stars: ✭ 200 (-8.26%)
Mutual labels: ssh-server
git-server-docker
A lightweight Git Server Docker image built with Alpine Linux. Available on GitHub and Docker Hub
Basic Usage
How to run the container in port 2222 with two volumes: keys volume for public keys and repos volume for git repositories:
$ docker run -d -p 2222:22 -v ~/git-server/keys:/git-server/keys -v ~/git-server/repos:/git-server/repos jkarlos/git-server-docker
How to use a public key:
Copy them to keys folder:
- From host: $ cp ~/.ssh/id_rsa.pub ~/git-server/keys
- From remote: $ scp ~/.ssh/id_rsa.pub [email protected]:~/git-server/keys
You need restart the container when keys are updated:
$ docker restart <container-id>
How to check that container works (you must to have a key):
$ ssh [email protected]<ip-docker-server> -p 2222
...
Welcome to git-server-docker!
You've successfully authenticated, but I do not
provide interactive shell access.
...
How to create a new repo:
$ cd myrepo
$ git init --shared=true
$ git add .
$ git commit -m "my first commit"
$ cd ..
$ git clone --bare myrepo myrepo.git
How to upload a repo:
From host:
$ mv myrepo.git ~/git-server/repos
From remote:
$ scp -r myrepo.git [email protected]:~/git-server/repos
How clone a repository:
$ git clone ssh://[email protected]<ip-docker-server>:2222/git-server/repos/myrepo.git
Arguments
- Expose ports: 22
- Volumes:
- /git-server/keys: Volume to store the users public keys
- /git-server/repos: Volume to store the repositories
SSH Keys
How generate a pair keys in client machine:
$ ssh-keygen -t rsa
How upload quickly a public key to host volume:
$ scp ~/.ssh/id_rsa.pub [email protected]:~/git-server/keys
Build Image
How to make the image:
$ docker build -t git-server-docker .
Docker-Compose
You can edit docker-compose.yml and run this container with docker-compose:
$ docker-compose up -d
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].