Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whisperpine/gitlab-compose
GitLab docker compose.
https://github.com/whisperpine/gitlab-compose
doker-compose gitlab
Last synced: about 2 months ago
JSON representation
GitLab docker compose.
- Host: GitHub
- URL: https://github.com/whisperpine/gitlab-compose
- Owner: whisperpine
- License: mit
- Created: 2023-12-30T12:52:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-12T07:40:11.000Z (6 months ago)
- Last Synced: 2024-07-12T09:00:01.724Z (6 months ago)
- Topics: doker-compose, gitlab
- Language: HCL
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# README
Deploy [GitLab](https://about.gitlab.com/) in your office and access it anywhere.
## File Notes
[gitlab.rb](./gitlab.rb) is duplicated from */etc/gitlab/gitlab.rb* (version v16.7.0-ee), which may be a handy reference.\
[setup-network.sh](./setup-network.sh) demonstrates how to create a docker network
with the [macvlan](https://docs.docker.com/network/drivers/macvlan/) driver type.\
[template.env](./template.env) is a template which is expected to be copied as
[.env](https://docs.docker.com/compose/environment-variables/set-environment-variables/) and edited further.## Cloudflare Tunnels
[Cloudflare Tunnel](https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/)
provides a secure way to host without a public IP address.\
It's recommended to set up infrastructures like Cloudflare Tunnel by [Terraform](https://www.terraform.io/).Read more in [terraform/README.md](./terraform/README.md).
## Feature Flags
On self-hosted GitLab, you may choose to enable or disable [feature flags](https://docs.gitlab.com/ee/user/feature_flags).\
Refer to [Enable and disable GitLab features deployed behind feature flags - GitLab Docs](https://docs.gitlab.com/ee/administration/feature_flags).```sh
docker compose exec -it gitlab bash
# this command may take several minutes.
sudo gitlab-rails console
```Related commands in gitlab-rails console:
```rb
# 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)
```