導入
開発サーバとして運用している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