Skip to content

A minimalistic Alpine-based Docker image for running a local HTTP Git server using Lighttpd

License

Notifications You must be signed in to change notification settings

ryan0x44/local-git-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Git Server

A minimalistic Alpine-based Docker image for running a local HTTP Git server using Lighttpd.

Configuration

Any git repository directories mounted under /var/www/git in the container will be accessible from http://localhost:9010/git/*

For example, by default we mount the current directory into /var/www/git/repo, and you can clone it using git clone http://localhost:9010/git/repo

If you have a workspace such as /home/user/workspace containing all of your git checkouts, change the following line in docker-compose.yaml:

    volumes:
      - .:/var/www/git/repo

to:

    volumes:
      - /home/user/workspace:/var/www/git

This would allow you to clone /home/user/workspace/myrepo using git clone http://localhost:9010/git/myrepo

Usage

Start the server container:

docker-compose up -d

Clone this repo

git clone http://localhost:9010/git/repo

About

A minimalistic Alpine-based Docker image for running a local HTTP Git server using Lighttpd

Resources

License

Stars

Watchers

Forks