-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
200 lines (182 loc) · 4.51 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
# Please see https://docs.tuleap.org/installation-guide/docker-image.html
#
# This docker-compose file is meant to be used by developers working on the Tuleap codebase
version: "2"
services:
reverse-proxy:
build:
context: tools/docker/reverse-proxy
volumes:
- ./tools/docker/reverse-proxy/nginx.conf:/etc/nginx/nginx.conf:ro,cached
- reverse-proxy-cert:/etc/pki/tls
depends_on:
- web
- realtime
web:
image: ghcr.io/enalean/tuleap-aio-dev:c7-php80-nginx
volumes:
- .:/usr/share/tuleap:cached
- tuleap-data:/data
- realtime-cert:/etc/pki/ca-trust/source/anchors
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- .env:/root/.tuleap_env:ro
tmpfs: /run
env_file:
- .env
environment:
- TULEAP_SYS_DBHOST=db
depends_on:
- ldap
- db
- realtime
realtime:
build:
context: tools/docker/realtime
command: /tuleap/tools/docker/realtime/run.sh
volumes:
- .:/tuleap:ro,cached
- realtime-conf:/etc/tuleap-realtime
- realtime-cert:/published-certificate
env_file:
- .env
mailhog:
image: mailhog/mailhog
ldap:
image: ghcr.io/enalean/ldap
env_file:
- .env
volumes:
- ldap-data:/data
gerrit:
build:
context: tools/docker/gerrit
env_file:
- .env
environment:
- CANONICAL_WEB_URL=http://gerrit.tuleap-aio-dev.docker:8080
volumes:
- gerrit-data:/data
depends_on:
- ldap
jenkins:
build:
context: tools/docker/jenkins
environment:
- JENKINS_OPTS="--prefix=/jenkins"
volumes:
- jenkins-data:/var/jenkins_home
- reverse-proxy-cert:/opt/reverse-proxy-cert:ro
nexus:
build:
context: tools/docker/nexus
image: sonatype/nexus3:3.30.0
volumes:
- ${NEXUS_VOLUME_DATA:-nexus-volume-data}:/nexus-data:Z
environment:
- INSTALL4J_ADD_VM_PARAMS
sonarqube:
build:
context: tools/docker/sonarqube
image: sonarqube:community
depends_on:
- sonarpgdb
volumes:
- ${SONAR_VOLUME_CONFIG:-sonar-volume-config}:/opt/sonarqube/conf:Z
- ${SONAR_VOLUME_DATA:-sonar-volume-data}:/opt/sonarqube/data:Z
- ${SONAR_VOLUME_EXT:-sonar-volume-ext}:/opt/sonarqube/extensions:Z
environment:
- SONAR_WEB_JAVAOPTS
- SONAR_CE_JAVAOPTS
- SONAR_SEARCH_JAVAOPTS
- SONARQUBE_JDBC_USERNAME=${SONAR_PGUSER}
- SONARQUBE_JDBC_PASSWORD=${SONAR_PGPASS}
- SONARQUBE_JDBC_URL=jdbc:postgresql://sonarpgdb:5432/sonar
sonarpgdb:
build:
context: tools/docker/sonarpgdb
image: postgres:13.2
ports:
- "5438:5432"
volumes:
- ${SONAR_VOLUME_DB:-sonar-volume-dbdata}:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${SONAR_PGUSER}
- POSTGRES_PASSWORD=${SONAR_PGPASS}
logging:
options:
max-size: 10m
max-file: "5"
gitlab:
build:
context: tools/docker/gitlab
hostname: 'gitlab.local'
environment:
GITLAB_OMNIBUS_CONFIG: |
external_url 'https://gitlab.local'
letsencrypt['enable'] = false
volumes:
- gitlab-config:/etc/gitlab
- gitlab-data:/var/opt/gitlab
networks:
default:
aliases:
- gitlab.local
db55:
image: mysql:5.5
env_file:
- .env
volumes:
- db-data:/var/lib/mysql
db:
image: mysql:5.7
env_file:
- .env
volumes:
- ./src/etc/tuleap-mysql57-dev.cnf:/etc/mysql/mysql.conf.d/tuleap.cnf:ro,cached
- db57-data:/var/lib/mysql
db-maria-10.3:
image: mariadb:10.3
env_file:
- .env
volumes:
- ./src/etc/tuleap-mysql57-dev.cnf:/etc/mysql/mariadb.conf.d/tuleap.cnf:ro,cached
- mariadb103-data:/var/lib/mysql
redis:
image: redis:3.2
volumes:
- redis-data:/data
command: redis-server --appendonly yes --auto-aof-rewrite-percentage 20 --auto-aof-rewrite-min-size 200kb
prometheus:
image: prom/prometheus:v2.3.0
volumes:
- .metrics_secret.key:/metrics_secret.key
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prom-data:/prometheus
ldap-admin:
image: osixia/phpldapadmin:0.7.1
volumes:
- ldap-data:/data
ports:
- "6443:443"
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap
volumes:
tuleap-data:
ldap-data:
gerrit-data:
gitlab-config:
gitlab-data:
db-data:
db57-data:
mariadb103-data:
redis-data:
realtime-conf:
realtime-cert:
reverse-proxy-cert:
prom-data:
jenkins-data:
nexus-volume-data:
sonar-volume-config:
sonar-volume-data:
sonar-volume-ext:
sonar-volume-dbdata: