forked from dagman62/jenkins-sonarqube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwith-plugins.yml
42 lines (39 loc) · 926 Bytes
/
with-plugins.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
version: '3.1'
services:
jenkins:
image: jenkins
build: .
container_name: jenkins
ports:
- "8080:8080"
- "50000:50000"
volumes:
- /var/jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_USER: sonar
POSTGRES_PASSWORD: sonar
volumes:
- postgres_data:/var/lib/postgresql/data
sonarqube:
image: sonarqube
container_name: sonarqube
ports:
- "9000:9000"
- "9092:9092"
environment:
SONARQUBE_JDBC_USERNAME: sonar
SONARQUBE_JDBC_PASSWORD: sonar
SONARQUBE_JDBC_URL: "jdbc:postgresql://postgres:5432/sonar"
volumes:
- sonar_data:/opt/sonarqube/data
- sonar_plugins:/opt/sonarqube/extensions/plugins
depends_on:
- postgres
volumes:
sonar_data:
sonar_plugins:
postgres_data: