-
clone this repository in your local machine where docker is running
git clone https://github.com/mechdeveloper/sonarqube-docker.git cd sonarqube-docker -
To spin up services defined in docker-compose.yml file
docker-compose up
-
Log in to http://localhost:9000 with System Administrator credentials (login=admin, password=admin). Once your server is installed and running, you may also want to Install Plugins. Then you're ready to begin Analyzing Source Code .
NOTE: With this configuration SonarQube uses Embedded database and it should be used for evaluation purposes only. The embedded database will not scale, it will not support upgrading to newer versions of SonarQube, and there is no support for migrating your data out of it into a different database engine.
-
To stop the services
docker-compose down
-
networks
- create bridge network in docker named
sonarqube
- create bridge network in docker named
-
volumes
volumes helps prevent the loss of information when updating to a new version or upgrading to a higher edition
- sonarqube_data
- contains data files, such as the embedded H2 database and Elasticsearch indexes
- sonarqube_logs
- contains SonarQube logs about access, web process, CE process, and Elasticsearch
- sonarqube_extensions
- contains plugins, such as language analyzers
- sonarqube_data
-
services
- sonarqube
- runs sonarqube:lts-community docker image as a contianer in Docker
- sonarqube