Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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)
```