SonarQube

SonarQube - Code quality and security analysis

9000
Default Port
2
Services
14.0/20
Complexity
Medium
Memory Usage
Configuration

Installation Command

blastdock init sonarqube

Template Overview

Everything you need to deploy Sonarqube with BlastDock

Quick Deploy

One command deployment

Secure

Production-ready security

Configurable

Customizable settings

Scalable

Ready to scale up

What's Included

Sonarqube
sonarqube:latest
Postgresql
postgres:13
Categories
Other
Security Features
Password Protection
Resource Requirements
CPU: Medium, Memory: Medium , Storage Required

Quick Commands

blastdock init Initialize new project
blastdock deploy Deploy the application
blastdock status Check deployment status
blastdock logs View application logs

Quick Installation

Get Sonarqube up and running in minutes with our one-click installation.

BlastDock Installation

First, install BlastDock using pip (recommended):

Terminal
pip install blastdock

Then deploy Sonarqube with:

Terminal
blastdock init sonarqube

Interactive mode:

Terminal
blastdock init sonarqube -i

What's Included

Sonarqube
Container service
Postgresql
Container service

BlastDock Commands

blastdock templates List available templates
blastdock status project Check deployment status
blastdock logs project View application logs
blastdock stop project Stop deployment

Configuration Options

Customize your Sonarqube installation with these configuration options.

2
Required Fields
0
Optional Fields
1
Auto-Generated Passwords

Web Port

Web interface port

port
Default: 9000
Required: Yes

Db Password

Database password

password
Default: ••••••••••••
Required: Yes
Security: Auto-generated

Docker Compose

Complete Docker Compose configuration for Sonarqube deployment.

2
Services
4
Volumes
1
Networks
1
Exposed Ports
docker-compose.yml
version: '3.8'

services:
  postgresql:
    image: postgres:13
    container_name: {{ project_name }}_postgresql
    restart: unless-stopped
    environment:
      0: POSTGRES_USER=sonar
      1: POSTGRES_PASSWORD={{ db_password }}
      2: POSTGRES_DB=sonar
    volumes:
      - /var/lib/postgresql/data
    networks:
      - sonarqube_network

  sonarqube:
    image: sonarqube:latest
    container_name: {{ project_name }}_sonarqube
    restart: unless-stopped
    depends_on:
      - postgresql
    ports:
      - "9000"
    environment:
      - SONAR_JDBC_URL=jdbc: postgresql://postgresql:5432/sonar
      0: SONAR_JDBC_USERNAME=sonar
      1: SONAR_JDBC_PASSWORD={{ db_password }}
    volumes:
      - /opt/sonarqube/data
      - /opt/sonarqube/extensions
      - /opt/sonarqube/logs
    networks:
      - sonarqube_network

volumes:
  postgresql_data:
    driver: local

  sonarqube_data:
    driver: local

  sonarqube_extensions:
    driver: local

  sonarqube_logs:
    driver: local

networks:
  sonarqube_network:
    driver: bridge