Git Product home page Git Product logo

gitlab-docker-compose's Introduction

利用方法

起動

docker-compose up -d

停止

docker-compose down

Dockerコンテナを実行しているサーバを再起動した場合は、 コンテナも停止( down )してから起動( up -d )を行った方が、 GitLabは安定して動作するようです。

初期設定

一度起動することで、設定ファイル(gitlab/config/gitlab.rb)が作成されます。 これをカスタマイズします。 以下の設定をこのファイルの最後に追加します。

external_url 'http://<IPアドレスまたはホスト名>:8780'
mattermost_external_url 'http://<IPアドレスまたはホスト名>:8880'

この設定を有効にするために、以下を実行します。

docker exec -it gitlab gitlab-ctl reconfigure

GitLabを利用するには、以下のURLにアクセスします。

http://<IPアドレスまたはホスト名>:8780

Mattermostを利用するには、以下のURLにアクセスします。

http://<IPアドレスまたはホスト名>:8880

GitLab Runnerの設定例

以下のように設定します。入力するのは (★) の行です。 ここで使用する GitLabの URLや tokenは、GitLabの Admin Area > Runners ページで取得しておきます。

$ docker exec -it gitlab-runner gitlab-runner register  (★)
Running in system-mode.

Please enter the gitlab-ci coordinator URL (e.g. https://gitlab.com/):
http://<IPアドレスまたはホスト名>:8780  (★)
Please enter the gitlab-ci token for this runner:
xxxxxxxxxxxxxxxxxxxxxx  (★)
Please enter the gitlab-ci description for this runner:
[localhost]:   (★)
Please enter the gitlab-ci tags for this runner (comma separated):
docker-compose  (★)
Registering runner... succeeded                     runner=xxxxxxxx
Please enter the executor: docker+machine, docker-ssh, parallels, ssh, virtualbox, docker, shell, docker-ssh+machine, kubernetes:
docker  (★)
Please enter the default Docker image (e.g. ruby:2.1):
alpine:latest  (★)
Runner registered successfully. Feel free to start it, but if it's running already the config should be automatically reloaded! 

Admin Area > Runners ページにこの Runnerが表示されれば、この設定が有効になっています。

ご参考

PlantUMLの設定

GitLabの Admin Area > Settings ページの PlantUML サーバの�URLとして以下を入力して、

http://<IPアドレスまたはホスト名>:8089

Enable PlantUML をチェックしてください。

GitLabの Wikiや Issue、AsciiDocなどで、PlantUMLを利用できるようになります。

ご参考

gitlab-docker-compose's People

Contributors

nobusugi246 avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.