0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntsu + Docker + Gitlabを動かす

Posted at

導入

開発サーバとして運用しているUbuntsu上にDockerをインストールし、その中でGitlabを動かしたい

やったこと

dockerのインストール

command
sudo apt-get install docker

gitlabのイメージでrun

command
docker run --detach ` //バックグラウンドで起動する
    --hostname gitlab.example.com `
    --publish 8080:8080 `
    --name gitlab `
    --restart always `
    --volume /srv/gitlab/config:/etc/gitlab `
    --volume /srv/gitlab/logs:/var/log/gitlab `
    --volume /srv/gitlab/data:/var/opt/gitlab `
    gitlab/gitlab-ce:latest

はまりごと

どうもbad gatewayで動かない
unicornというパッケージがポート8080を使用していた

/etc/gitlab/gitlab.rb
unicorn['port'] = 8090

参考

https://qiita.com/TaskeHAMANO/items/b01f2d8590c23d6b2bce
https://maku77.github.io/git/gitlab/unicorn-port.html

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?