Skip to content

Instantly share code, notes, and snippets.

@vogdb
Forked from fzliu/docker-compose.yml
Created February 3, 2023 05:43
Show Gist options
  • Save vogdb/f54ca44689c0b97d463e3743aaa84ca9 to your computer and use it in GitHub Desktop.
Save vogdb/f54ca44689c0b97d463e3743aaa84ca9 to your computer and use it in GitHub Desktop.

Revisions

  1. @fzliu fzliu created this gist Jun 23, 2021.
    28 changes: 28 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    web:
    image: 'gitlab/gitlab-ee:latest'
    restart: always
    hostname: 'gitlab.example.com'
    environment:
    GITLAB_OMNIBUS_CONFIG: |
    external_url 'https://gitlab.example.com'
    # Add any other gitlab.rb configuration here, each on its own line
    puma['worker_processes'] = 0
    sidekiq['max_concurrency'] = 10
    prometheus_monitoring['enable'] = false
    gitlab_rails['env'] = {'MALLOC_CONF' => 'dirty_decay_ms:1000, muzzy_decay_ms:1000'}
    gitaly['cgroups_count'] = 2
    gitaly['cgroups_mountpoint'] = '/sys/fs/cgroup'
    gitaly['cgroups_hierarchy_root'] = 'gitaly'
    gitaly['cgroups_memory_enabled'] = true
    gitaly['cgroups_memory_limit'] = 250000
    gitaly['cgroups_cpu_enabled'] = true
    gitaly['cgroups_cpu_shares'] = 512
    gitaly['concurrency'] = [{'rpc' => "/gitaly.SmartHTTPService/PostReceivePack", 'max_per_repo' => 3}, {'rpc' => "/gitaly.SSHService/SSHUploadPack", 'max_per_repo' => 3}]
    gitaly['env'] = {'LD_PRELOAD' => '/opt/gitlab/embedded/lib/libjemalloc.so', 'MALLOC_CONF' => 'dirty_decay_ms:1000,muzzy_decay_ms:1000', 'GITALY_COMMAND_SPAWN_MAX_PARALLEL' => '2'}
    ports:
    - '80:80'
    - '443:443'
    volumes:
    - '/var/lib/gitlab/config:/etc/gitlab'
    - '/var/lib/gitlab/logs:/var/log/gitlab'
    - '/var/lib/gitlab/data:/var/opt/gitlab'