{"id":23602959,"url":"https://github.com/gitblit-org/gitblit-docker","last_synced_at":"2026-01-24T21:15:13.294Z","repository":{"id":12674573,"uuid":"15346601","full_name":"gitblit-org/gitblit-docker","owner":"gitblit-org","description":"Gitblit on Docker","archived":false,"fork":false,"pushed_at":"2023-04-04T20:23:44.000Z","size":74,"stargazers_count":36,"open_issues_count":1,"forks_count":30,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-27T12:13:51.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Roff","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitblit-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-20T19:34:07.000Z","updated_at":"2023-10-10T07:07:48.000Z","dependencies_parsed_at":"2022-09-01T05:21:51.956Z","dependency_job_id":null,"html_url":"https://github.com/gitblit-org/gitblit-docker","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitblit-org%2Fgitblit-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitblit-org%2Fgitblit-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitblit-org%2Fgitblit-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitblit-org%2Fgitblit-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitblit-org","download_url":"https://codeload.github.com/gitblit-org/gitblit-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449583,"owners_count":19640535,"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":[],"created_at":"2024-12-27T12:13:54.948Z","updated_at":"2025-11-05T07:30:23.344Z","avatar_url":"https://github.com/gitblit-org.png","language":"Roff","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitblit \u0026 Docker\n\nThese instructions assume you are running Linux and you have already [installed Docker](https://docs.docker.com/install/linux/docker-ce/ubuntu/).\n\n\n## Running Gitblit in Docker\n\nYou can use the official [Gitblit Docker image](https://hub.docker.com/r/gitblit/gitblit).\n\nSee the [Docker Hub Readme](hub-readme.md) for more detailed usage information.\n\n\n### Start a Gitblit instance\n\n\n```\nsudo docker pull gitblit/gitblit:rpc\nsudo docker run -d --name gitblit -p 8443:8443 -p 8080:8080 -p 9418:9418 -p 29418:29418 gitblit/gitblit:rpc\n```\n\nThe followings commands should retrieve and execute the Gitblit image and launch Gitblit in a Docker container that serves the web UI on ports 8080 and 8443.  Your repositories will also be accessible via ssh, http, https, and the git procotol.  The RPC administration interface has also been enabled so that you may use the Gitblit Manager to configure settings, manage repositories, or manage users.\n\nYou should be able to browse to http://localhost:8080 or https://localhost:8443 and login as `admin/admin`.\n\n\n### Stop the instance\n\nYou can shutdown your gitblit container with:\n```\nsudo docker exec -it gitblit gitblit-stop.sh\n```\n\nYou can manually re-start your container with:\n```\nsudo docker start gitblit\n```\n\n\n### Data persistence\n\nThe Gitblit image stores data under `/var/opt/gitblit`. A Docker volume is defined for this path,\nso that data is stored persistently and efficiently. The data is split into a subfolder for\nconfiguration data (`etc/`) and one for repository data (`srv/`).\n\n### User id\n\nThe gitblit server is run under the user and group id `8117`, assigned to the user `gitblit`.\n\n\n## Build Instructions\n\nYou can build your own Gitblit image with the files in this repository. \n\n### Clone this Repository\n```\ngit clone https://github.com/gitblit-org/gitblit-docker.git\n```\n\n### Build your Docker container\n```\ncd gitblit-docker\nsudo docker build -t my-gitblit .\n```\n\n### Run your Gitblit container and setup localhost port-forwarding (*-p localhost:container*)\n```\nsudo docker run -d --name gitblit -p 8443:8443 -p 8080:8080 -p 9418:9418 -p 29418:29418 my-gitblit\n```\n\n\n## Migrating from an older image\n\nThe directory layout for the Gitblit data was changed with the image for version 1.9.0. If you had previously used a Docker image of Gitblit with a volume mounted on `/opt/gitblit-data`, migration of the configuration data is advised. A script `migrate-data` is available in the new image for this. Run the script from a container with your volume mounted under `/var/opt/gitblit`.\n\n```console\n$ ls -l\ntotal 0\ndrwxr-xr-x  6 beowulf  staff       192 Mar 10 21:02 gitblit-data/\n\n$ sudo docker run -it --rm -v $PWD/gitblit-data:/var/opt/gitblit my-gitblit migrate-data\n\nCreating new directories 'etc' and 'srv' ...\nMoving existing files to new directories ...\n   Moving to folder 'etc': certs\n   Moving to folder 'etc': defaults.properties\n   Moving to folder 'srv': git\n   Moving to folder 'etc': gitblit.properties\n   Moving to folder 'etc': gitignore\n   Moving to folder 'etc': groovy\n   Moving to folder 'srv': lfs\n   Moving to folder 'etc': plugins\n   Moving to folder 'etc': projects.conf\n   Moving to folder 'etc': serverKeyStore.jks\n   Moving to folder 'etc': serverTrustStore.jks\n   Moving to folder 'etc': ssh-dsa-hostkey.pem\n   Moving to folder 'etc': ssh-rsa-hostkey.pem\n   Moving to folder 'etc': users.conf\nAdjusting 'include' setting in etc/gitblit.properties\nChecking the defaults.properties file for changes.\n   There were changes detected in the defaults.properties file.\n   These have been copied over into the gitblit.properties file.\n   Please review these and adjust as required.\n   The defaults.properties file should not be changed as it gets overwritten upon upgrade.\nDone.\n\n$ sudo docker run -d --name gitblit -v $PWD/gitblit-data:/var/opt/gitblit -p 8080:8080 my-gitblit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitblit-org%2Fgitblit-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitblit-org%2Fgitblit-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitblit-org%2Fgitblit-docker/lists"}