- Create a directory for project
 - Copy 
docker-compose.yml - Create 
/extensionsin project directory. - Run 
docker-compose up -d 
          Last active
          April 25, 2020 21:23 
        
      - 
      
 - 
        
Save giansalex/7c35a4af37bab57690a9f2fa8baea4fd to your computer and use it in GitHub Desktop.  
    Sonarqube Docker Compose - Alpine
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: '3.1' | |
| services: | |
| db: | |
| image: postgres:alpine | |
| environment: | |
| - POSTGRES_USER=sonar | |
| - POSTGRES_PASSWORD=sonar | |
| - POSTGRES_DB=sonar | |
| networks: | |
| - sonarnet | |
| volumes: | |
| - postgresql_data:/var/lib/postgresql/data | |
| sonarqube: | |
| image: sonarqube:8.2-community | |
| depends_on: | |
| - db | |
| environment: | |
| - SONARQUBE_JDBC_USERNAME=sonar | |
| - SONARQUBE_JDBC_PASSWORD=sonar | |
| - SONARQUBE_JDBC_URL=jdbc:postgresql://db/sonar | |
| networks: | |
| - sonarnet | |
| ports: | |
| - "9000:9000" | |
| volumes: | |
| - ./extensions:/opt/sonarqube/extensions | |
| networks: | |
| sonarnet: | |
| volumes: | |
| postgresql_data: | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment