-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
221 lines (184 loc) · 4.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
#
# Zookeeper
#
zookeeper:
image: jplock/zookeeper:3.4.6
#
# Mesos master
#
mesosMaster:
image: redjack/mesos-master:0.21.0
restart: always
ports:
- "5050:5050"
links:
- "zookeeper:zookeeperInstance"
environment:
MESOS_LOG_DIR: /var/log
MESOS_CLUSTER: localmesos
MESOS_ZK: zk://zookeeperInstance:2181/mesos
MESOS_HOSTNAME: 172.17.42.1
MESOS_WORK_DIR: /var/lib/mesos
MESOS_QUORUM: 1
#
# Mesos slaves
#
# https://registry.hub.docker.com/u/redjack/mesos-slave/
# http://mesos.apache.org/documentation/latest/configuration/
#
mesosSlave1:
image: redjack/mesos-slave:0.21.0
privileged: true
ports:
- "5051:5051"
links:
- "zookeeper:zookeeperInstance"
- "mesosMaster"
environment:
MESOS_MASTER: zk://zookeeperInstance:2181/mesos
MESOS_ISOLATOR: "cgroups/cpu,cgroups/mem"
MESOS_CONTAINERIZERS: "docker,mesos"
MESOS_EXECUTOR_REGISTRATION_TIMEOUT: "5mins"
MESOS_HOSTNAME: 172.17.42.1
MESOS_PORT: "5051"
MESOS_LOG_DIR: /var/log
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/local/bin/docker
- /sys/fs/cgroup:/sys/fs/cgroup
mesosSlave2:
image: redjack/mesos-slave:0.21.0
privileged: true
ports:
- "5052:5052"
links:
- "zookeeper:zookeeperInstance"
- "mesosMaster"
environment:
MESOS_MASTER: zk://zookeeperInstance:2181/mesos
MESOS_ISOLATOR: "cgroups/cpu,cgroups/mem"
MESOS_CONTAINERIZERS: "docker,mesos"
MESOS_EXECUTOR_REGISTRATION_TIMEOUT: "5mins"
MESOS_HOSTNAME: 172.17.42.1
MESOS_PORT: "5052"
MESOS_LOG_DIR: /var/log
volumes_from:
- "mesosSlave1"
mesosSlave3:
image: redjack/mesos-slave:0.21.0
privileged: true
ports:
- "5053:5053"
links:
- "zookeeper:zookeeperInstance"
- "mesosMaster"
environment:
MESOS_MASTER: zk://zookeeperInstance:2181/mesos
MESOS_ISOLATOR: "cgroups/cpu,cgroups/mem"
MESOS_CONTAINERIZERS: "docker,mesos"
MESOS_EXECUTOR_REGISTRATION_TIMEOUT: "5mins"
MESOS_HOSTNAME: 172.17.42.1
MESOS_PORT: "5053"
MESOS_LOG_DIR: /var/log
volumes_from:
- "mesosSlave1"
#
# Marathon
#
# https://registry.hub.docker.com/u/mesosphere/marathon/
#
marathon:
image: mesosphere/marathon:v0.8.1
ports:
- "8080:8080"
links:
- "zookeeper:zookeeperInstance"
- "mesosMaster"
command: "--master zk://zookeeperInstance:2181/mesos --zk zk://zookeeperInstance:2181/marathon"
#
# Chronos
#
# https://registry.hub.docker.com/u/tomaskral/chronos
#
chronos:
image: tomaskral/chronos:2.3.2-mesos0.21.1
ports:
- "4400:8080"
links:
- "zookeeper:zookeeperInstance"
- mesosMaster
command: "--master zk://zookeeperInstance:2181/mesos --zk_hosts zk://zookeeperInstance:2181/mesos"
jenkins:
build: ./containers/jenkins/.
privileged: true
restart: always
links:
- marathon:marathon
- gitlab:gitlab
volumes:
- "volumes/jenkins-volume:/var/jenkins_home"
- .:/var/jenkins_data
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
#libdevmapper.so somehow has slightly different version (1.02 -> 1.02.1)
- /lib64/libdevmapper.so.1.02:/usr/lib/libdevmapper.so.1.02
ports:
- "8081:8080"
registry:
image: registry
restart: always
environment:
- STORAGE_PATH=/registry
volumes:
- "volumes/registry-volume:/registry"
ports:
- "5000:5000"
registryui:
image: atcol/docker-registry-ui
restart: always
links:
- registry
ports:
- "9090:8080"
environment:
REG1: http://registry:5000/v1/
postgresql:
image: sameersbn/postgresql:9.4
environment:
- DB_USER=gitlab
- DB_PASS=password
- DB_NAME=gitlabhq_production
volumes:
- "volumes/postgresql-volume:/var/lib/postgresql"
gitlab:
image: sameersbn/gitlab:7.12.0
links:
- redis:redisio
- postgresql:postgresql
ports:
- "10080:80"
- "10022:22"
environment:
- TZ=Asia/Kolkata
- SMTP_ENABLED=false
- SMTP_DOMAIN=www.example.com
- SMTP_HOST=smtp.gmail.com
- SMTP_PORT=587
- SMTP_PASS=password
- SMTP_STARTTLS=true
- SMTP_AUTHENTICATION=login
- GITLAB_TIMEZONE=Kolkata
- GITLAB_HOST=localhost
- GITLAB_PORT=10080
- GITLAB_SSH_PORT=10022
- GITLAB_BACKUPS=daily
- GITLAB_BACKUP_TIME=01:00
volumes:
- "volumes/gitlab-volume/:/home/git/data"
redis:
image: sameersbn/redis:latest
volumes:
- "volumes/redis-volume:/var/lib/redis"