-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
138 lines (131 loc) · 5.92 KB
/
docker-compose.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
version: '3'
volumes:
postgres_data:
driver: local
jenkins_data:
driver: local
keycloak_data:
driver: local
gerrit_data:
driver: local
sonarqube_bundled-plugins:
sonarqube_conf:
sonarqube_data:
sonarqube_db:
sonarqube_extensions:
services:
postgres:
image: postgres:9.6
container_name: postgres
volumes:
- sonarqube_db:/var/lib/postgresql
- postgres_data:/var/lib/postgresql/data
- ../docker-postgresql-multiple-databases:/docker-entrypoint-initdb.d
environment:
POSTGRES_USER: gerrit2
POSTGRES_PASSWORD: gerrit
POSTGRES_DB: reviewdb
# create DB for keycloak
# POSTGRES_DB: keycloak
# POSTGRES_USER: keycloak
# POSTGRES_PASSWORD: password
# CREATE DATABASE keycloak
# CREATE USER keycloak WITH PASSWORD 'password';
# GRANT ALL PRIVILEGES ON DATABASE "keycloak" to keycloak;;
# - POSTGRESQL_USER=sonar
# - POSTGRESQL_PASS=xaexohquaetiesoo
# - POSTGRESQL_DB=sonarqube
ports:
- 5432:5432
keycloak:
image: jboss/keycloak:3.4.3.Final
container_name: keycloak
environment:
POSTGRES_PORT_5432_TCP_ADDR: postgres
POSTGRES_PORT_5432_TCP_PORT: 5432
POSTGRES_DATABASE: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_LOGLEVELP: DEBUG
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 8080:8080
depends_on:
- postgres
volumes:
- keycloak_data:/data
# Create realm, client and user via Keycloak UI
jenkins:
image: openshift/jenkins-2-centos7:v3.10
container_name: jenkins
environment:
JENKINS_PASSWORD: admin
INSTALL_PLUGINS: ace-editor:1.0.1,allure-jenkins-plugin:2.26.0,analysis-collector:1.52,analysis-core:1.92,authentication-tokens:1.1,
blueocean-bitbucket-pipeline:1.5.0,blueocean-commons:1.5.0,blueocean-config:1.5.0,blueocean-core-js:1.5.0,
blueocean-dashboard:1.5.0,blueocean-git-pipeline:1.5.0,blueocean-jwt:1.5.0,blueocean-pipeline-api-impl:1.5.0,
blueocean-pipeline-scm-api:1.5.0,blueocean-rest-impl:1.5.0,blueocean-rest:1.5.0,blueocean-web:1.5.0,blueocean:1.5.0,
bouncycastle-api:2.16.2,branch-api:2.0.11,checkstyle:3.50,cloudbees-folder:6.1.2,command-launcher:1.2,
conditional-buildstep:1.3.1,config-file-provider:2.16.2,credentials:2.1.17,dependency-check-jenkins-plugin:2.1.1,
display-url-api:2.2.0,docker-commons:1.8,docker-workflow:1.9,durable-task:1.16,favorite:2.3.1,findbugs:4.72,
gerrit-trigger:2.27.5,git-client:2.7.0,git-server:1.5,git:3.9.1,github-api:1.86,github-branch-source:2.3.6,
github:1.29.2,greenballs:1.15,handlebars:1.1,htmlpublisher:1.16,icon-shim:2.0.3,jackson2-api:2.7.3,jacoco:2.2.1,
javadoc:1.0,job-dsl:1.60,jquery:1.11.2-0,junit:1.24,keycloak:2.2.0,mapdb-api:1.0.1.0,matrix-auth:1.7,
matrix-project:1.11,maven-plugin:2.17,mercurial:2.3,metrics:3.1.2.9,momentjs:1.1,parameterized-trigger:2.35.1,
pipeline-build-step:2.7,pipeline-graph-analysis:1.6,pipeline-milestone-step:1.3.1,pipeline-model-api:1.2.7,
pipeline-model-definition:1.2.7,pipeline-model-extensions:1.2.7,pipeline-stage-step:2.2,pipeline-stage-tags-metadata:1.2.7,
pipeline-stage-view:2.4,plain-credentials:1.3,pmd:3.50,pubsub-light:1.12,role-strategy:2.7.0,
run-condition:0.10,scm-api:2.2.6,sonar-gerrit:2.3,ssh-slaves:1.26,structs:1.10,subversion:2.10.5,
test-results-analyzer:0.3.4,token-macro:2.1,validating-string-parameter:2.3,workflow-api:2.25,
workflow-basic-steps:2.3,workflow-cps-global-lib:2.9,workflow-cps:2.42,workflow-durable-task-step:2.19,
workflow-job:2.14.1,workflow-multibranch:2.16,workflow-remote-loader:1.2,workflow-scm-step:2.4,
workflow-step-api:2.14,workflow-support:2.18
ports:
- '8081:8080'
- "50000:50000"
volumes:
- 'jenkins_data:/jenkins'
gerrit:
image: openfrontier/gerrit:2.14.8
container_name: gerrit
environment:
AUTH_TYPE: OAUTH
#AUTH_TYPE: DEVELOPMENT_BECOME_ANY_ACCOUNT
WEBURL: http://gerrit:8082
DATABASE_TYPE: postgresql
DB_PORT_5432_TCP_ADDR: postgres
DB_PORT_5432_TCP_PORT: 5432
DB_ENV_POSTGRES_DB: reviewdb
DB_ENV_POSTGRES_USER: gerrit2
DB_ENV_POSTGRES_PASSWORD: gerrit
OAUTH_KEYCLOAK_CLIENT_ID: gerrit
OAUTH_KEYCLOAK_CLIENT_SECRET: f69d68fe-fb03-46af-9d8e-dc8c7c5b2a22
OAUTH_KEYCLOAK_REALM: edp
OAUTH_KEYCLOAK_ROOT_URL: http://keycloak:8080
ports:
- 8082:8080
- 29418:29418
depends_on:
- postgres
volumes:
- 'gerrit_data:/var/gerrit/review_site'
sonarqube:
image: sonarqube:7.1
restart: always
environment:
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=xaexohquaetiesoo
- SONARQUBE_JDBC_URL=jdbc:postgresql://postgres:5432/sonarqube
# - DB_USER=sonar
# - DB_PASS=xaexohquaetiesoo
# - DB_NAME=sonar
ports:
- "9000:9000"
# - "9092:9092"
volumes:
- sonarqube_conf:/opt/sonarqube/conf
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins