forked from cms-sw/cms-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
91 lines (85 loc) · 1.94 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
logstash:
image: cmssw/logstash
# Zookeeper is used as the arbiter of the mesos setup.
zookeeper:
image: cmssw/zookeeper
net: "bridge"
expose:
- "2181"
master:
# image: cmssw/mesos-master
build: mesos-master
net: "bridge"
ports:
- "5050:5050"
expose:
- "53:53"
links:
- zookeeper:zk
volumes:
- /var/log
# A slave which every other slave knows about. This is for example
# for sevices which expose themselves to the outside world or which we want to
# know where to find, e.g. DNS or again for processes which monitor the status
# of the master.
# By changing it's hostname explicitly to "frontend" we also allow
# marathon schedule jobs there via the constraint:
#
# hostname:CLUSTER:frontend
#
# even if the master does not actually link to it.
frontend:
image: cmssw/mesos-slave
hostname: frontend
expose:
- "5051:5051"
ports:
- "53:53/udp"
- "80:80"
links:
- zookeeper:zk
- master:master
net: "bridge"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/bin/docker
- /sys:/sys
privileged: true
# A generic mesos slave, which does not know about it's peers, but
# only about the master, which it can connect to but of which cannot see
# volumes.
slave:
image: cmssw/mesos-slave
net: "bridge"
ports:
- "5051:5051"
links:
- zookeeper:zk
- master:master
- frontend:frontend
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /usr/local/bin/docker:/usr/bin/docker
- /sys:/sys
privileged: true
marathon:
#image: cmssw/marathon
build: marathon
net: "bridge"
ports:
- "8080:8080"
links:
- zookeeper:zk
- master:master
- slave:slave
- frontend:frontend
# A docker container which is used to deploy services in
# marathon
deployer:
build: deployer
net: "bridge"
volumes:
- ~/Dropbox/work/active/cms-marathon:/cms-marathon
links:
- marathon:marathon
- frontend:frontend