forked from Accenture/adop-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
333 lines (313 loc) · 9.6 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
# set TARGET_HOST to dns/ip of proxy
# set LOGSTASH_HOST to dns/ip of logstash host
proxy:
container_name: proxy
restart: always
image: accenture/adop-nginx:0.2.0
#build: ../images/docker-nginx/
net: ${CUSTOM_NETWORK_NAME}
ports:
- "80:80"
- "443:443"
environment:
- "constraint:tier==public"
- "LDAP_SERVER=ldap:389"
- "LDAP_USERNAME=cn=admin,${LDAP_FULL_DOMAIN}"
- "LDAP_PASSWORD=${LDAP_PWD}"
- "LDAP_USER_BASE_DN=ou=people,${LDAP_FULL_DOMAIN}"
- "LDAP_GROUP_ATTRIBUTE=member"
- "LDAP_USER_ID_ATTRIBUTE=cn"
- "LDAP_USER_OBJECT_CLASS=inetOrgPerson"
ldap:
container_name: ldap
restart: always
#build: ../images/docker-ldap/
image: accenture/adop-ldap:0.1.2
net: ${CUSTOM_NETWORK_NAME}
expose:
- "389"
environment:
INITIAL_ADMIN_USER: ${INITIAL_ADMIN_USER}
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD}
JENKINS_PASSWORD: ${JENKINS_PWD}
GERRIT_PASSWORD: ${GERRIT_PWD}
SLAPD_PASSWORD: ${LDAP_PWD}
SLAPD_DOMAIN: ${LDAP_DOMAIN}
SLAPD_FULL_DOMAIN: ${LDAP_FULL_DOMAIN}
gerrit-mysql:
container_name: gerrit-mysql
restart: always
image: mysql:5.6.25
net: ${CUSTOM_NETWORK_NAME}
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: ${PASSWORD_SQL}
MYSQL_USER: ${GERRIT_MYSQL_USER}
MYSQL_PASSWORD: ${GERRIT_MYSQL_PASSWORD}
MYSQL_DATABASE: ${GERRIT_MYSQL_DATABASE}
gerrit:
container_name: gerrit
restart: always
#build: ../images/docker-gerrit/
image: accenture/adop-gerrit:0.1.2
privileged: true
net: ${CUSTOM_NETWORK_NAME}
expose:
- "8080"
- "29418"
environment:
- "dependency:container==gerrit-mysql"
- "REPO_PATH=/var/git/repos"
- "WEBURL=${PROTO}://${TARGET_HOST}/gerrit/"
- "DATABASE_TYPE=mysql"
- "DB_HOSTNAME=gerrit-mysql"
- "DB_PORT=3306"
- "DB_NAME=${GERRIT_MYSQL_DATABASE}"
- "DB_USER=${GERRIT_MYSQL_USER}"
- "DB_PASSWORD=${GERRIT_MYSQL_PASSWORD}"
- "AUTH_LOGOUTURL=${PROTO}://${TARGET_HOST}/gerrit/"
- "AUTH_TYPE=LDAP"
- "GERRIT_PASSWORD=${PASSWORD_GERRIT}"
- "JENKINS_PASSWORD=${PASSWORD_JENKINS}"
- "INITIAL_ADMIN_USER=${INITIAL_ADMIN_USER}"
- "INITIAL_ADMIN_PASSWORD=${INITIAL_ADMIN_PASSWORD_PLAIN}"
- "LDAP_SERVER=ldap:389"
- "LDAP_ACCOUNTBASE=${LDAP_FULL_DOMAIN}"
- "LDAP_ACCOUNTPATTERN=(cn=$${username})"
- "LDAP_ACCOUNTFULLNAME=$${cn}"
- "LDAP_ACCOUNTEMAILADDRESS=mail"
- "LDAP_USERNAME=cn=admin,${LDAP_FULL_DOMAIN}"
- "LDAP_PASSWORD=${LDAP_PWD}"
- "LDAP_GROUPBASE=ou=groups,${LDAP_FULL_DOMAIN}"
- "LDAP_GROUPPATTERN=(cn=$${groupname})"
- "LDAP_GROUPMEMBERPATTERN=(uniqueMember=$${dn})"
- "HTTPD_LISTENURL=proxy-${PROTO}://0.0.0.0:8080/gerrit"
- "USER_NAME=${GERRIT_USER_NAME}"
- "USER_EMAIL=${GERRIT_USER_EMAIL}"
- "DOWNLOAD_SCHEME=http"
sensu-uchiwa:
container_name: sensu-uchiwa
restart: always
image: sstarcher/uchiwa:0.15.0
net: ${CUSTOM_NETWORK_NAME}
environment:
SENSU_HOSTNAME: sensu-api
SENSU_DC_NAME: Sensu
expose:
- "3000"
sensu-api:
container_name: sensu-api
restart: always
image: accenture/adop-sensu:0.1.0
net: ${CUSTOM_NETWORK_NAME}
command: api
expose:
- "4567"
environment:
RABBITMQ_HOST: sensu-rabbitmq
REDIS_HOST: sensu-redis
sensu-server:
container_name: sensu-server
restart: always
image: accenture/adop-sensu:0.1.0
net: ${CUSTOM_NETWORK_NAME}
command: server
environment:
CLIENT_NAME: core
API_HOST: sensu-api
RABBITMQ_HOST: sensu-rabbitmq
REDIS_HOST: sensu-redis
sensu-client:
container_name: sensu-client
restart: always
image: accenture/adop-sensu:0.1.0
net: ${CUSTOM_NETWORK_NAME}
command: client
environment:
CLIENT_NAME: core
RABBITMQ_HOST: sensu-rabbitmq
JENKINS_PREFIX: jenkins
CLIENT_SUBSCRIPTIONS: "proxy,gerrit,jenkins,nexus,sonarqube,sensu,kibana"
sensu-rabbitmq:
container_name: sensu-rabbitmq
restart: always
image: rabbitmq:3.5.7-management
net: ${CUSTOM_NETWORK_NAME}
expose:
- "5672"
- "5671"
- "15672"
- "15671"
sensu-redis:
container_name: sensu-redis
restart: always
image: redis:3.0.7
net: ${CUSTOM_NETWORK_NAME}
expose:
- "6379"
sonar-mysql:
container_name: sonar-mysql
restart: always
image: mysql:5.6.25
net: ${CUSTOM_NETWORK_NAME}
expose:
- "3306"
environment:
MYSQL_ROOT_PASSWORD: ${PASSWORD_SQL}
MYSQL_USER: ${SONAR_MYSQL_USER}
MYSQL_PASSWORD: ${SONAR_MYSQL_PASSWORD}
MYSQL_DATABASE: ${SONAR_MYSQL_DATABASE}
sonar:
container_name: sonar
restart: always
image: accenture/adop-sonar:0.1.1
#build: ../images/docker-sonar/
net: ${CUSTOM_NETWORK_NAME}
expose:
- "9000"
environment:
- "dependency:container==sonar-mysql"
- "LDAP_URL=ldap://ldap:389"
- "LDAP_BIND_DN=cn=admin,${LDAP_FULL_DOMAIN}"
- "LDAP_BIND_PASSWORD=${LDAP_PWD}"
- "LDAP_USER_BASE_DN=ou=people,${LDAP_FULL_DOMAIN}"
- "LDAP_USER_REQUEST=(&(objectClass=inetOrgPerson)(uid={login}))"
- "LDAP_USER_REAL_NAME_ATTRIBUTE=displayName"
- "LDAP_USER_EMAIL_ATTRIBUTE=mail"
- "LDAP_GROUP_BASE_DN=ou=groups,${LDAP_FULL_DOMAIN}"
- "LDAP_GROUP_REQUEST=(&(objectClass=groupOfUniqueNames)(uniqueMember={dn}))"
- "LDAP_GROUP_ID_ATTRIBUTE=cn"
- "SONARQUBE_JDBC_URL=jdbc:mysql://sonar-mysql:3306/${SONAR_MYSQL_DATABASE}?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true"
jenkins:
container_name: jenkins
restart: always
image: accenture/adop-jenkins:0.1.5
#build: ../images/docker-jenkins/
net: ${CUSTOM_NETWORK_NAME}
expose:
- "8080"
- "50000"
privileged: true
environment:
ADOP_PLATFORM_MANAGEMENT_VERSION: "0.1.1"
JENKINS_OPTS: "--prefix=/jenkins"
ROOT_URL: "${PROTO}://${TARGET_HOST}/jenkins/"
LDAP_SERVER: "ldap:389"
LDAP_ROOTDN: "${LDAP_FULL_DOMAIN}"
LDAP_USER_SEARCH_BASE: "ou=people"
LDAP_USER_SEARCH: "uid={0}"
LDAP_GROUP_SEARCH_BASE: "ou=groups"
LDAP_GROUP_SEARCH_FILTER: ""
LDAP_GROUP_MEMBERSHIP_FILTER: ""
LDAP_MANAGER_DN: "cn=admin,${LDAP_FULL_DOMAIN}"
LDAP_MANAGER_PASSWORD: ${LDAP_PWD}
LDAP_INHIBIT_INFER_ROOTDN: "false"
LDAP_DISABLE_MAIL_ADDRESS_RESOLVER: "false"
LDAP_DISPLAY_NAME_ATTRIBUTE_NAME: "displayName"
LDAP_MAIL_ADDRESS_ATTRIBUTE_NAME: "mail"
INITIAL_ADMIN_USER: ${INITIAL_ADMIN_USER}
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD_PLAIN}
GERRIT_HOST_NAME: "gerrit"
GERRIT_FRONT_END_URL: "http://gerrit:8080/gerrit"
GERRIT_JENKINS_USERNAME: "jenkins"
GERRIT_JENKINS_PASSWORD: ${PASSWORD_JENKINS}
SONAR_SERVER_URL: "http://sonar:9000/sonar/"
SONAR_ACCOUNT_LOGIN: ${SONAR_ACCOUNT_LOGIN}
SONAR_ACCOUNT_PASSWORD: ${PASSWORD_JENKINS}
SONAR_DB_URL: "jdbc:mysql://sonar-mysql:3306/sonar?useUnicode=true&characterEncoding=utf8"
SONAR_DB_LOGIN: ${SONAR_DB_LOGIN}
SONAR_DB_PASSWORD: ${SONAR_DB_PASSWORD}
SONAR_PLUGIN_VERSION: ""
SONAR_ADDITIONAL_PROPS: ""
SONAR_RUNNER_VERSION: "2.4"
ANT_VERSION: "1.9.4"
MAVEN_VERSION: "3.0.5"
NODEJS_VERSION: "0.12.2"
NODEJS_GLOBAL_PACKAGES: "grunt-cli@~0.1.13 bower@~1.3.12 plato@~1.2.1"
NODEJS_PACKAGES_REFRESH_HOURS: "72"
GIT_GLOBAL_CONFIG_NAME: "ADOP Jenkins"
GIT_GLOBAL_CONFIG_EMAIL: "jenkins@${LDAP_DOMAIN}"
DOCKER_TLS_VERIFY: ${DOCKER_TLS_VERIFY}
DOCKER_HOST: ${DOCKER_HOST}
DOCKER_CLIENT_CERT_PATH: ${DOCKER_CLIENT_CERT_PATH}
DOCKER_NETWORK_NAME: ${CUSTOM_NETWORK_NAME}
jenkins-slave:
container_name: jenkins-slave
restart: always
image: accenture/adop-jenkins-slave:0.1.3
net: ${CUSTOM_NETWORK_NAME}
privileged: true
environment:
SLAVE_LABELS: "aws ldap java8 docker"
SWARM_PASSWORD: ${PASSWORD_JENKINS}
SLAVE_EXECUTORS: ${SLAVE_EXECUTORS}
INITIAL_ADMIN_USER: ${INITIAL_ADMIN_USER}
INITIAL_ADMIN_PASSWORD: ${INITIAL_ADMIN_PASSWORD_PLAIN}
selenium-hub:
container_name: selenium-hub
restart: always
image: selenium/hub:2.46.0
net: ${CUSTOM_NETWORK_NAME}
expose:
- "4444"
selenium-node-chrome:
container_name: selenium-node-chrome
restart: always
image: selenium/node-chrome:2.46.0
net: ${CUSTOM_NETWORK_NAME}
environment:
SE_OPTS: "-nodeConfig /var/selenium-config/config-chrome.json"
HUB_PORT_4444_TCP_ADDR: "selenium-hub"
HUB_PORT_4444_TCP_PORT: "4444"
selenium-node-firefox:
container_name: selenium-node-firefox
restart: always
image: selenium/node-firefox:2.46.0
net: ${CUSTOM_NETWORK_NAME}
environment:
SE_OPTS: "-nodeConfig /var/selenium-config/config-firefox.json"
HUB_PORT_4444_TCP_ADDR: "selenium-hub"
HUB_PORT_4444_TCP_PORT: "4444"
nexus:
container_name: nexus
restart: always
image: accenture/adop-nexus:0.1.0
net: ${CUSTOM_NETWORK_NAME}
expose:
- "8081"
environment:
NEXUS_BASE_URL: "${PROTO}://${TARGET_HOST}/nexus"
LDAP_SEARCH_BASE: "${LDAP_FULL_DOMAIN}"
LDAP_ENABLED: "true"
LDAP_URL: "ldap"
LDAP_BIND_DN: "cn=admin,${LDAP_FULL_DOMAIN}"
LDAP_USER_PASSWORD_ATTRIBUTE: "userPassword"
LDAP_USER_BASE_DN: "ou=people"
LDAP_GROUP_BASE_DN: "ou=groups"
LDAP_BIND_PASSWORD: ${LDAP_PWD}
ldap-ltb:
container_name: ldap-ltb
restart: always
image: accenture/adop-ldap-ltb:0.1.0
net: ${CUSTOM_NETWORK_NAME}
expose:
- "80"
environment:
LDAP_LTB_URL: "ldap://ldap:389"
LDAP_LTB_DN: "cn=admin,${LDAP_FULL_DOMAIN}"
LDAP_LTB_PWD: "${LDAP_PWD}"
LDAP_LTB_BS: "${LDAP_FULL_DOMAIN}"
ldap-phpadmin:
container_name: ldap-phpadmin
restart: always
image: accenture/adop-ldap-phpadmin:0.1.0
net: ${CUSTOM_NETWORK_NAME}
expose:
- "80"
environment:
LDAP_SERVER_NAME: "LDAP"
LDAP_SERVER_HOST: "ldap"
LDAP_SERVER_PORT: "389"
LDAP_SERVER_BIND_ID: "cn=admin,${LDAP_FULL_DOMAIN}"
LDAP_SERVER_BASE_DN: "${LDAP_FULL_DOMAIN}"