{"id":22018358,"url":"https://github.com/flavienbwk/sonarqube-docker-compose","last_synced_at":"2026-02-03T16:31:57.987Z","repository":{"id":124243392,"uuid":"342565389","full_name":"flavienbwk/sonarqube-docker-compose","owner":"flavienbwk","description":"Docker Compose files and example to easily getting you started with SonarQube","archived":false,"fork":false,"pushed_at":"2024-08-29T20:57:26.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-30T05:12:08.769Z","etag":null,"topics":["code-quality","docker","docker-compose","sonarqube"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flavienbwk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-26T12:12:05.000Z","updated_at":"2024-08-29T20:57:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"1b29f787-e810-41c7-bf76-8c78213c2ebf","html_url":"https://github.com/flavienbwk/sonarqube-docker-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsonarqube-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsonarqube-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsonarqube-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavienbwk%2Fsonarqube-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavienbwk","download_url":"https://codeload.github.com/flavienbwk/sonarqube-docker-compose/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236045307,"owners_count":19086077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-quality","docker","docker-compose","sonarqube"],"created_at":"2024-11-30T05:11:59.490Z","updated_at":"2026-02-03T16:31:52.935Z","avatar_url":"https://github.com/flavienbwk.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonarqube - Docker compose\n\nDefault version included : `10.6.0`\n\nThat'll be pretty straightforward :\n\n```bash\nsudo sysctl -w vm.max_map_count=512000\n# Persist this setting in `/etc/sysctl.conf` and execute `sysctl -p`\n\ncp .env.example .env\ndocker-compose up -d\n```\n\nDefault port is 9000 and credentials are `admin`/`admin`\n\n## Running sonar-scanner\n\nWe are going to scan some Python code in `./example/python_code`\n\n1. First, go to the SonarQube interface, create a new project and grab :\n\n   - The project key (you provide)\n   - The SonarQube token (provided to you)\n\n2. Configure them in `./example/.env`\n\n3. Let's run our test :\n\n    ```bash\n    cd example\n    docker-compose up\n    ```\n\n## Popular plugins for Community Edition\n\n- Multi-branch : https://github.com/mc1arke/sonarqube-community-branch-plugin\n- Active Directory SSO : https://github.com/hkamel/sonar-auth-aad\n\nDon't forget to add this property to `sonar.properties`:\n\n```\nsonar.web.javaAdditionalOpts=-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-1.21.0.jar=web\nsonar.ce.javaAdditionalOpts=-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-1.21.0.jar=ce\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fsonarqube-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavienbwk%2Fsonarqube-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavienbwk%2Fsonarqube-docker-compose/lists"}