version: '3.1'
services:
sonarqube:
build: .
ports:
- 9000:9000
volumes:
- data:/opt/sonarqube/data
- .:/opt/sonarqube/sources
volumes:
data:
$ docker-compose run --rm sonarqube sonar-scanner
## File: sonar-project.properties
sonar.projectKey=<<PROJECT_NAME>>
sonar.login=<<USERNAME_TOKEN>>