1.9 KiB
1.9 KiB
Goal
Spin up a Git server with a greater feature set than Gitea. Specifically, I want: - Integrated CI/CD. I would prefer a platform that comes with a 1st party CI/CD solution, rather than plugging in a 3rd party solution. - Container/image registry. Building a locally-hosted registry for images enables better caching. - Enterprise-competitive platform. Getting experience with a platform that competes with other enterprise SCM solutions is more valuable than something designed for a smaller scale.
Plan
- Create the host mount points for the docker volumes:
mkdir -p ~/docker_data/gitlab/data ~/docker_data/gitlab/logs ~/docker_config/gitlab/config
- Import the default GitLab configuration from the docs.
- Customize the compose file:
hostname: gitlab.jafner.net
- change the
external_url
under theGITLAB_OMNIBUS_CONFIG
env var tohttps://gitlab.jafner.net
- Add the
gitlab_rails['gitlab_shell_ssh_port'] = 2229
configuration line underGITLAB_OMNIBUS_CONFIG
with a new SSH port - Remove http and https port bindings. Move host SSH port binding to a higher port.
- Change the volume bindings to match my conventions (
DOCKER_DATA
instead ofGITLAB_HOME
) - Change the docker compose version to
'3.3'
- Add Traefik labels to enable TLS.
- Run the file and test.
- Troubleshoot issues.
- GOTO 4.
- Import Gitea repos
- Move Gitea from
git.jafner.net
togitea.jafner.net
- Update Homer with new service locations
===