-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
128 lines (120 loc) · 3.47 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
version: '3.4'
volumes:
slave-m2-repository:
gerrit:
jenkins:
nexus:
ldap_data:
ldap_config:
services:
ldap:
image: osixia/openldap:1.2.4
environment:
LDAP_ORGANISATION: ${LDAP_ORGANISATION:-My Company}
LDAP_DOMAIN: ${LDAP_DOMAIN:-example.com}
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin123}
command: --copy-service
volumes:
- ldap_data:/var/lib/ldap
- ldap_config:/etc/ldap/slapd.d
- ./bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/bootstrap.ldif
ports:
- "389:389"
- "636:636"
ldap-admin:
image: osixia/phpldapadmin:0.7.1
ports:
- 6443:443
environment:
PHPLDAPADMIN_LDAP_HOSTS: ldap
gerrit:
image: jfactory/gerrit:latest
expose:
- "8080"
- "29418"
ports:
- "29418:29418"
environment:
# http
"MAIN_URL":
# auth
"GIT_BASIC_AUTH_POLICY":
# gitweb
"GITWEB_TYPE":
# auth
"GIT_BASIC_AUTH_POLICY":
# gitweb
"GITWEB_TYPE":
# ldap
"LDAP_URL":
"LDAP_ACCOUNT_BASE":
"LDAP_GROUP_BASE":
"LDAP_USERNAME":
"LDAP_PASSWORD":
# smtp
"SMTP_SERVER":
"SMTP_SERVER_PORT":
"SMTP_FROM":
# jira
"JIRA_URL":
volumes:
- gerrit:/home/gerrit/review_site
- ./certificates/jenkins_key.pub:/home/gerrit/review_site/jenkins_key.pub
# timezone
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: unless-stopped
nexus:
image: sonatype/nexus3
environment:
"NEXUS_CONTEXT": "nexus"
expose:
# www
- "8081"
# docker registry
- "5000"
volumes:
- nexus:/nexus-data
# timezone
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: unless-stopped
jenkins:
image: jfactory/jenkins:latest
expose:
- "8080"
# Slaves access Jenkins on this port
ports:
- "50000:50000"
volumes:
- jenkins:/var/jenkins_home
- ./certificates/jenkins_key:/var/jenkins_home/jenkins_ssh_key
# See: https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/
- /var/run/docker.sock:/run/docker.sock
# timezone
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
# http
"MAIN_URL":
"JENKINS_SMTP_FROM":
restart: unless-stopped
proxy:
image: jfactory/proxy:2.1
ports:
- "80:80"
- "443:443"
- "5000:5000"
volumes:
- ./certificates/nginx-server.key:/etc/nginx/certificates/server.key
- ./certificates/nginx-server.crt:/etc/nginx/certificates/server.crt
# timezone
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
restart: unless-stopped
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.179.0.0/16