LoginSignup
0
0

More than 5 years have passed since last update.

SonarQubeをdocker-composeで起動する際にアクセスするURLを変更する

Posted at

docker-compose.yml

https://github.com/SonarSource/docker-sonarqube/blob/master/recipes.md
githubから取得出来ます。

-Dsonar.web.contextの設定

このまま起動すると、localhost:9000でアクセスするとSonarqubeの画面が開きますが、URLを変更することができます。
command: -Dsonar.web.context=/sonarqube
この設定を追加することで、localhost:9000/sonarqubeでアクセスできます。

services:
  sonarqube:
    image: sonarqube
    command: -Dsonar.web.context=/sonarqube
    ports:
      - "9000:9000"
以下略。
0
0
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
0