{"id":13688791,"url":"https://github.com/genshen/docker-gitlab","last_synced_at":"2026-02-23T22:12:26.036Z","repository":{"id":54625409,"uuid":"151862806","full_name":"genshen/docker-gitlab","owner":"genshen","description":"Dockerfile for gitlab.","archived":false,"fork":false,"pushed_at":"2024-11-19T13:16:42.000Z","size":343,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-01T20:37:05.295Z","etag":null,"topics":["docker","git","gitlab"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/genshen/gitlab-ce/","language":"Dockerfile","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/genshen.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-10-06T17:09:27.000Z","updated_at":"2024-11-19T13:14:56.000Z","dependencies_parsed_at":"2024-11-12T12:32:27.936Z","dependency_job_id":"875132da-47a2-4ea6-b51d-5310b3c78746","html_url":"https://github.com/genshen/docker-gitlab","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/genshen/docker-gitlab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genshen%2Fdocker-gitlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genshen%2Fdocker-gitlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genshen%2Fdocker-gitlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genshen%2Fdocker-gitlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/genshen","download_url":"https://codeload.github.com/genshen/docker-gitlab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/genshen%2Fdocker-gitlab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017138,"owners_count":26085984,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","gitlab"],"created_at":"2024-08-02T15:01:22.780Z","updated_at":"2025-10-13T22:47:00.278Z","avatar_url":"https://github.com/genshen.png","language":"Dockerfile","funding_links":[],"categories":["git"],"sub_categories":[],"readme":"# Gitlab Docker Image\n## Quick start\n```bash\ngit clone https://github.com/genshen/docker-gitlab.git\ncd docker-gitlab\ndocker pull genshen/gitlab-ce:latest\ndocker pull genshen/gitlab-pages:latest\nmkdir -p data/gitlab data/gitlab-pages data/postgresql data/redis data/gitlab-pages/shared\ndocker-compose run --rm gitlab init # initialize gitlab database\ndocker-compose up\n```\n\nAnd then open browser, visit `http://localhost:10080`.\n\n## Build docker images\n\u003c!--\n            lang       statue   note     config  make\nshell       ruby+go    ?                         ./bin/install; ./bin/compile;\nworkhorse   go         okk               redis   make install PREFIX=xxx\npages       go         okk               cmd arg make, and copy bin dir.\ngitaly      go+ruby    okk      git              make install [PREFIX=xxx]; make to download and compile Ruby dependencies, and to compile the Go binary.\ngitlab      ruby\n--\u003e\n```bash\ncd builder\ndocker build --rm -t gitlab-base-builder .\ncd ../gitlab-shell\ndocker build --rm -t gitlab-shell-builder .\ncd ../gitlab-workhorse\ndocker build --rm -t gitlab-workhorse-builder .\ncd ../gitaly\ndocker build --rm -t gitlab-gitaly-builder .\ncd ../gitlab\ndocker build --rm -t gitlab-builder .\n# building intermediate images finished.\ncd ../gitlab-pages\ndocker build --rm -t genshen/gitlab-pages .\ncd ../\ndocker build --rm -t genshen/gitlab-ce .\n```\nor you can build all images using all-in-one Dockerfile.\n```\ndocker build --file all-in-one/Dockerfile --rm -t genshen/gitlab-ce .\ndocker build --file gitlab-pages/Dockerfile --rm -t genshen/gitlab-pages .\n```\n\n## Notes for configuration.\n### Database\nFor currently, only postgresql is supported.\n\nIn docker compose, 127.0.0.1 (and its reserved DNS name localhost) always refers to the current container, never the host.\nSo, in database config (file config/database.yml), the **host** term should set to postgresql container name.\nSo is the redis server hostname.\n\n### gitlab-workhorse\nIn entrypoint of this gitlab image, the path of file *.gitlab_workhorse_secret* is set to be `${GITLAB_WORKHORSE_DIR}/.gitlab_workhorse_secret` (${GITLAB_WORKHORSE_DIR} is usually /home/git/gitlab-workhorse).  \nif .gitlab_workhorse_secret file path is not configured correctly, the clone will return http 500 error when using http(s) protocol.  \nYou should also config .gitlab_workhorse_secret file path in `workhorse.secret_file` in config file `config/gitlab.yml`.  \n\n## data map\nThe symbolic link of following directories are created to `${GITLAB_DATA_DIR}`, `${GITLAB_LOG_DIR}` or `${GITLAB_CONFIG_DIR}`.\n\n\u003e default, ${GITLAB_HOME} is /home/git; ${GITLAB_DIR} is ${GITLAB_HOME}/gitlab; ${GITLAB_PAGES_DATA_DIR} is /gitlab/gitlab-pages, ${GITLAB_DATA_DIR} is /gitlab/data.\n\n|  gitlab source location (symbolic link) | =\u003e real location |\n|---|---|\n| sshd host key                    | ${GITLAB_DATA_DIR}/ssh  |\n| ${GITLAB_HOME}/repositories      | ${GITLAB_DATA_DIR}/repositories  |\n| ${GITLAB_HOME}/.ssh              | ${GITLAB_DATA_DIR}/.ssh  |\n| | |\n| ${GITLAB_DIR}/builds             | ${GITLAB_DATA_DIR}/builds  |\n| ${GITLAB_DIR}/public/uploads     | ${GITLAB_DATA_DIR}/public/uploads  |\n| ${GITLAB_DIR}/shared/artifacts   | ${GITLAB_DATA_DIR}/shared/artifacts  |\n| ${GITLAB_DIR}/shared/lfs-objects | ${GITLAB_DATA_DIR}/shared/lfs-objects  |\n| ${GITLAB_DIR}/shared/registry    | ${GITLAB_DATA_DIR}/shared/registry  |\n| ${GITLAB_DIR}/shared/pages       | ${GITLAB_PAGES_DATA_DIR}  |\n| ${GITLAB_DIR}/tmp                | ${GITLAB_DATA_DIR}/tmp  |\n| | |\n| ${GITLAB_DIR}/log            | ${GITLAB_LOG_DIR}/gitlab/  |\n| ${GITLAB_SHELL_DIR}/gitlab-shell.log | ${GITLAB_LOG_DIR}/gitlab/gitlab-shell.log  |\n| sshd log                     |  ${GITLAB_LOG_DIR}/sshd.log  |\n| | |\n| ${GITLAB_DIR}/config         |  ${GITLAB_CONFIG_DIR} |\n\n## Run gitlab\nRun `docker-compose up` command, the gitlab-workhorse will listen on tcp port 8181. You can also change environment variable `WORKHORSE_LISTEN_NETWORK` to \"unix\" (default value is \"tcp\") to let gitlab-workhorse listen unix socket `${GITLAB_DATA_DIR}/tmp/sockets/gitlab.socket`.\n\n## Gitlab-Pages\nImage genshen/gitlab-ce does not containe gitlab-pages.\nIf you need gitlab-pages, you can pull genshen/gitlab-pages.\nYou should then follow this [link](https://docs.gitlab.com/ce/administration/pages/source.html) to config your gitlab-pages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenshen%2Fdocker-gitlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenshen%2Fdocker-gitlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenshen%2Fdocker-gitlab/lists"}