LoginSignup
6
10

More than 3 years have passed since last update.

GitLabを動かす

Last updated at Posted at 2015-11-26

参考

GitLab (git)

docker-compose.yml
web:
  image: 'gitlab/gitlab-ce:latest'
  restart: always
  hostname: 'localhost'
  environment:
    GITLAB_OMNIBUS_CONFIG: |
      external_url 'http://localhost:8080'
      # Add any other gitlab.rb configuration here, each on its own line
  ports:
    - '10080:80'
    - '10443:443'
    - '10022:22'
  volumes:
    - /etc/localtime:/etc/localtime
    - ./gitlab/config:/etc/gitlab
    - ./gitlab/logs:/var/log/gitlab
    - ./gitlab/data:/var/opt/gitlab

メモリ使用量を少し抑えられるかも?

  • 以下設定したがメモリ2.3GB必要だった。
config/gitlab.rb
unicorn["worker_processes"] = 1
postgresql["shared_buffers"] = "128MB"

ユーザー登録を無効にする方法 (古い画面)

signup.png

(古いメモ) GitLab 7から8にバージョンアップの注意

手順
docker compose stop
docker pull gitlab/gitlab-ce
docker compose up
  • DBのmigrationが走るので数分まつ。
  • 新規プロジェクトを作成できなくなった(500エラー)のため、全リポジトリを一回チェッアウトして一から作りなおした。
6
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
10