{"id":22457655,"url":"https://github.com/ingwinlu/docker-git-server","last_synced_at":"2025-08-02T03:32:45.202Z","repository":{"id":24104583,"uuid":"100638799","full_name":"ingwinlu/docker-git-server","owner":"ingwinlu","description":"Minimal containerized git repository server","archived":false,"fork":false,"pushed_at":"2021-12-17T11:12:06.000Z","size":11,"stargazers_count":7,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-08-18T10:44:45.497Z","etag":null,"topics":["docker","git","minimal"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ingwinlu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-17T19:37:04.000Z","updated_at":"2023-08-18T10:44:45.498Z","dependencies_parsed_at":"2022-07-15T13:47:11.786Z","dependency_job_id":null,"html_url":"https://github.com/ingwinlu/docker-git-server","commit_stats":null,"previous_names":[],"tags_count":3,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingwinlu%2Fdocker-git-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingwinlu%2Fdocker-git-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingwinlu%2Fdocker-git-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ingwinlu%2Fdocker-git-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ingwinlu","download_url":"https://codeload.github.com/ingwinlu/docker-git-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228432595,"owners_count":17918894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","git","minimal"],"created_at":"2024-12-06T08:08:55.667Z","updated_at":"2024-12-06T08:08:56.778Z","avatar_url":"https://github.com/ingwinlu.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-git-server\n\nA simple dockerized git repository server. Also available on\n[Docker Hub](https://hub.docker.com/r/winlu/docker-git-server/).\n\n## Usage\nStart the container:\n```\ndocker run -d -p 1234:22 \\\n   --name git_server \\\n   -v git_data:/git/data \\\n   winlu/docker-git-server\n```\nOr a simple `docker-compose up` (you might want to edit the source of\nthe image in).\n\nAdd a user:\n```\ndocker exec git_server sh add_git_user.sh winlu \"`cat ~/.ssh/id_rsa.pub`\"\n```\n\nInitialize a repo:\n```\nssh localhost -p 1234 \"init my_repo.git\"\n```\n\nAdd remote to your git repository:\n```\ngit remote add docker_git_server ssh://localhost:1234/~/my_repo.git\n```\n\nAnd push:\n```\ngit push docker_git_server --set-upstream master\n```\n\n## Persistence\nIt is recommended to use a docker volume for persistence because of\nfile permission issues. All data (setup users, repositories, ssh server keys)\nis kept alive during container removal/upgrade.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fingwinlu%2Fdocker-git-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fingwinlu%2Fdocker-git-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fingwinlu%2Fdocker-git-server/lists"}