-
Notifications
You must be signed in to change notification settings - Fork 221
/
Copy pathdocker-compose.yml
48 lines (43 loc) · 1.25 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
version: '2'
services:
zookeeper:
image: netflixoss/exhibitor:1.5.2
ports:
- 2181:2181
mesos-leader:
image: mesosphere/mesos-master:1.1.0-2.0.107.ubuntu1404
ports:
- 5050:5050
environment:
- MESOS_HOSTNAME=$DOCKER_IP
- MESOS_IP=0.0.0.0
- MESOS_PORT=5050
- MESOS_LOG_DIR=/var/log/mesos
- MESOS_WORK_DIR=/var/tmp/mesos
- MESOS_ZK=zk://zookeeper:2181/mesos
- MESOS_QUORUM=1
- MESOS_REGISTRY=in_memory
mesos-agent:
image: mesosphere/mesos-slave:1.1.0-2.0.107.ubuntu1404
ports:
- 5051:5051
privileged: true
environment:
- MESOS_HOSTNAME=$DOCKER_IP
- MESOS_IP=0.0.0.0
- MESOS_PORT=5051
- MESOS_LOG_DIR=/var/log/mesos
- MESOS_WORK_DIR=/var/tmp/mesos
- MESOS_MASTER=zk://zookeeper:2181/mesos
- MESOS_SWITCH_USER=0
- MESOS_CONTAINERIZERS=docker,mesos
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /var/run/docker.sock:/run/docker.sock
- /usr/local/bin/docker:/bin/docker
command: --resources='ports:[3000-9990,31000-32000]'
marathon:
image: mesosphere/marathon:v1.3.0
ports:
- 8080:8080
command: --master zk://zookeeper:2181/mesos --zk zk://zookeeper:2181/marathon --hostname $DOCKER_IP