{"id":19156992,"url":"https://github.com/bertrandmartel/gitlab-docker-compose","last_synced_at":"2025-05-07T07:46:48.219Z","repository":{"id":43974940,"uuid":"68058729","full_name":"bertrandmartel/gitlab-docker-compose","owner":"bertrandmartel","description":"A fully configurable Gitlab CE docker-compose build","archived":false,"fork":false,"pushed_at":"2016-12-25T01:18:25.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T20:17:41.861Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertrandmartel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-13T00:20:00.000Z","updated_at":"2020-07-08T20:08:01.000Z","dependencies_parsed_at":"2022-09-11T00:52:21.946Z","dependency_job_id":null,"html_url":"https://github.com/bertrandmartel/gitlab-docker-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fgitlab-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fgitlab-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fgitlab-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertrandmartel%2Fgitlab-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertrandmartel","download_url":"https://codeload.github.com/bertrandmartel/gitlab-docker-compose/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252838778,"owners_count":21812082,"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-11-09T08:36:51.651Z","updated_at":"2025-05-07T07:46:48.183Z","avatar_url":"https://github.com/bertrandmartel.png","language":"Shell","readme":"# Gitlab CE docker compose \n\nA fully configurable gitlab CE docker-compose build \n\nIt also includes a feature to generate a self-signed certificate\n\n## Docker-compose\n\n* edit vars-template with your own configuration (see below)\n\n* source \u0026 launch\n\n```\nsource vars-template.sh\ndocker-compose up\n```\n\n## Configuration\n\nThis configuration is editable in `vars-template.sh` that must be sourced before running docker-compose :\n\n| Variable name                    |  description       | sample value                                      |\n|----------------------------------|---------------------------------|------------------------------------------------------------------------|\n| GITLAB_HTTP_INTERNAL_PORT        | http port   | 4242       |\n| GITLAB_HTTP_HOST_PORT            | http port exposed to host  | 4343                                                                   |\n| GITLAB_EXTERNAL_URL              | external url                               | https://com.example.host:4242                                          |\n| GITLAB_SHELL_PORT                | ssh port (you can use custom port)                                | 8022                                                                   |\n| GITLAB_REDIRECT_HTTPS            | specify if http redirected to https                                | true                                                                   |\n| GITLAB_SSL_CERT                  | ssl server cert path                                | /etc/gitlab/ssl/gitlab.crt                                             |\n| GITLAB_SSL_KEY                   | ssl server key path                                | /etc/gitlab/ssl/gitlab.key                                             |\n| GITLAB_CERT_SUBJECT              | ssl cert subject (for self signed)                               | (*) |\n| GITLAB_SMTP_ENABLE               | enable smtp                                | true                                                                   |\n| GITLAB_SMTP_ADDRESS              | smtp address                                | smtp.gmail.com                                                         |\n| GITLAB_SMTP_PORT                 | smtp port                                | 587                                                                    |\n| GITLAB_SMTP_USER_NAME            | email used                                | your_mail@gmail.com                                                    |\n| GITLAB_SMTP_PASSWORD             | email password                                | your_password                                                          |\n| GITLAB_SMTP_DOMAIN               | smtp domain                                | smtp.gmail.com                                                         |\n| GITLAB_SMTP_AUTHENTICATION       | smtp authentication used                                | login                                                                  |\n| GITLAB_SMTP_ENABLE_STARTTLS_AUTO | start TLS enabled for smtp                                | true                                                                   |\n| GITLAB_SMTP_TLS                  | use TLS for smtp                                | false                                                                  |\n| GITLAB_SMTP_OPENSSL_VERIFY_MODE  | smptp verify mode                                | peer                                                                   |\n| GITLAB_GIT_BASIC_AUTH_ENABLED    | basic authentication for gitlab                                | true                                                                   |\n| GITLAB_GIT_BASIC_AUTH_MAX_RETRY  | max retry for passowrd attempt                                | 10                                                                     |\n| GITLAB_GIT_BASIC_AUTH_FIND_TIME  | number of time allowed before ban                                | 60                                                                     |\n| GITLAB_GIT_BASIC_AUTH_BAN_TIME   | ban time                                 | 3600                                                                   |\n| REGENERATE_CERT                  | specify if cert should be regenerated each time                                | false                                                                  |\n| GENERATE_SELF_SIGNED_CERT        | specify to generate self signed certificates                                | true                                                                   |\n\n(*) /C=FR/ST=Paris/L=Paris/O=GlobalSecurity/OU=ITDepartment/CN=example.com\n\n## Docker-cloud\n\nThere is no generation of self-signed certificates on runtime with stackfile. For using SSL, place your certs in `${USER_PATH}/gitlab/config/ssl` directory on your host before deploying :\n\n```\nsource vars-template.sh\nexport USER_PATH=/home/bobby\nenvsubst \u003c stackfile-template.yml \u003e stackfile.yml\n```\n\n* revise your `stackfile.yml` file before creating/updating the stack :\n\n```\n# create the stack :\n\ndocker-cloud stack create --name gitlab-ce -f stackfile.yml\n\n# or update :\n\ndocker-cloud stack update -f stackfile.yml \u003cuuid\u003e\n```\n\n* start/deploy :\n\n```\n# start the stack :\n\ndocker-cloud stack start \u003cuuid\u003e\n\n# or redeploy :\n\ndocker-cloud stack redeploy \u003cuuid\u003e\n```\n\n## External links\n\n* restore gitlab backups : https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandmartel%2Fgitlab-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertrandmartel%2Fgitlab-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertrandmartel%2Fgitlab-docker-compose/lists"}