LoginSignup
11
11

More than 5 years have passed since last update.

Dockerを使ってGitLabを立ち上げる

Last updated at Posted at 2014-10-07

Dockerを使ってGitLabを立ち上る

使用するイメージはこちら⇒https://registry.hub.docker.com/u/sameersbn/gitlab/
細かい設定はさておき、とりあえずGitLabを立ち上げてデータの永続化をします。

以下、コマンド

sudo docker run --name=mysql -d \
  -e 'DB_NAME=gitlabhq_production' -e 'DB_USER=gitlab' -e 'DB_PASS=password'\
  -v /opt/docker_data/mysql:/var/lib/mysql \
  sameersbn/mysql:latest

sudo docker run --name=redis -d \
  -v /opt/docker_data/redis:/var/lib/redis \
 sameersbn/redis:latest

sudo docker run --name=gitlab -d \
  --link mysql:mysql \
  --link redis:redisio \
  -e 'GITLAB_PORT=10080' -e 'GITLAB_SSH_PORT=10022'\
  -e 'GITLAB_HOST=gitlab_hostname'\
  -p 10022:22 -p 10080:80 \
  -v /opt/docker_data/gitlab:/home/git/data \
  sameersbn/gitlab:latest

-e 'GITLAB_HOST=gitlab_hostname'\の部分については各GitLabホストを設定してください。

http://localhost:10080でアクセスできます。

初期ユーザのログイン情報は以下の通り
username: root
password: 5iveL!fe

11
11
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
11
11