-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonarqube.yml
50 lines (50 loc) · 1.2 KB
/
sonarqube.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: "3.3"
services:
#SonarQube
sonarqube:
image: sonarqube:lts-community
container_name: SonarQube
restart: always
depends_on:
- sonardb
environment:
SONAR_JDBC_URL: jdbc:postgresql://sonardb:5432/sonar
SONAR_JDBC_USERNAME: sonar
SONAR_JDBC_PASSWORD: sonar
ports:
- 9000:9000
volumes:
- ./data/sonarqube/sonarqube_data:/opt/sonarqube/data
- ./data/sonarqube/sonarqube_extensions:/opt/sonarqube/extensions
- ./logs/sonarqube/sonarqube_logs:/opt/sonarqube/logs
networks:
- sonarnet
links:
- sonardb
#SonarQube Database
sonardb:
image: postgres:12
container_name: SonarQubeDataBase
restart: always
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
volumes:
- ./data/sonarqube/postgresql:/var/lib/postgresql
- ./data/sonarqube/postgresql_data:/var/lib/postgresql/data
networks:
- sonarnet
#SonarScannerCli
sonar-scanner:
image: sonarsource/sonar-scanner-cli:latest
container_name: SonnarScannerCli
depends_on:
- sonarqube
networks:
- sonarnet
links:
- sonarqube
networks:
sonarnet:
external:
name: sonarnet