Deploy GitLab in your office and access it anywhere.
gitlab.rb is duplicated from /etc/gitlab/gitlab.rb (version v16.7.0-ee), which may be a handy reference.
setup-network.sh demonstrates how to create a docker network
with the macvlan driver type.
template.env is a template which is expected to be copied as
.env and edited further.
Cloudflare Tunnel
provides a secure way to host without a public IP address.
It's recommended to set up infrastructures like Cloudflare Tunnel by Terraform.
Read more in terraform/README.md.
On self-hosted GitLab, you may choose to enable or disable feature flags.
Refer to Enable and disable GitLab features deployed behind feature flags - GitLab Docs.
docker compose exec -it gitlab bash
# this command may take several minutes.
sudo gitlab-rails console
Related commands in gitlab-rails console:
# enable "example_feature" feature flag.
Feature.enable(:example_feature)
# check if "example_feature" is enabled.
Feature.enabled?(:example_feature)
# disable "example_feature" feature flag.
Feature.enable(:example_feature)
# unset "example_feature" so that GitLab falls back to the default.
Feature.remove(:example_feature)