Compose file to launch GitLab CE and LDAP server on the local machine.
[caution]
- this provides HTTP(non-tls) environment.
- arm64 version of gitlab docker image is not provided. checking with amd64 version.
Only special notes should be noted.
- GitLab
- Enable LFS.
- Enable LDAP.
- Enable Pages.
- Disable TLS.
- LDAP
- Disable TLS.
-
Edit env file.
-
Launch the container.
Execute the following command.
docker-compose up -d
Wait a little until the following log is output.
Check log withdocker-compose logs -f web
.gitlab-ce | gitlab-ce | ==> /var/log/gitlab/nginx/gitlab_error.log <== gitlab-ce | gitlab-ce | ==> /var/log/gitlab/nginx/access.log <== gitlab-ce | gitlab-ce | ==> /var/log/gitlab/nginx/current <== gitlab-ce | gitlab-ce | ==> /var/log/gitlab/nginx/gitlab_pages_error.log <== gitlab-ce | gitlab-ce | ==> /var/log/gitlab/nginx/error.log <== gitlab-ce |
-
Open in browser.
-
GitLab
-
phpLDAPadmin
- When you don't know the initial root password for GitLab.
- execute
docker exec -it gitlab-ce grep 'Password:' /etc/gitlab/initial_root_password
.
- execute
- When you want to apply a sample DIF.
- execute
docker exec -it openldap ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/init.ldif
.
- execute
- When you want to reset all data.
- execute
docker-compose down && docker-compose rm
. - execute
sudo rm -r gitlab/config/ gitlab/data/ gitlab/logs/ openldap/ldap/ openldap/slapd/
.
- execute