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"
以下略。