-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
55 lines (51 loc) · 1.41 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
version: "2"
services:
zookeeper:
network_mode: host
image: zookeeper:3.4.9
mesos-master:
image: mesosphere/mesos-master:1.1.0-2.0.107.ubuntu1404
network_mode: host
entrypoint:
- mesos-master
depends_on:
- zookeeper
environment:
- MESOS_IP=127.0.0.1
- MESOS_CLUSTER=local
- MESOS_HOSTNAME=mesos-master
- MESOS_QUORUM=1
- MESOS_PORT=5050
- MESOS_WORK_DIR=/var/lib/mesos
- MESOS_ZK=zk://127.0.0.1:2181/mesos
mesos-slave:
image: mesosphere/mesos-slave:1.1.0-2.0.107.ubuntu1404
entrypoint:
- mesos-slave
network_mode: host
depends_on:
- zookeeper
- mesos-master
environment:
- MESOS_IP=127.0.0.1
- MESOS_CONTAINERIZERS=mesos,docker
- MESOS_ISOLATOR=cgroups/cpu,cgroups/mem
- MESOS_ISOLATION=cgroups/cpu,cgroups/mem,docker/runtime
- MESOS_MASTER=zk://127.0.0.1:2181/mesos
- MESOS_PORT=5051
- MESOS_WORK_DIR=/var/lib/mesos
- MESOS_RESOURCES=ports(*):[11000-11999]
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /usr/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
marathon:
image: mesosphere/marathon:latest
network_mode: host
depends_on:
- zookeeper
- mesos-master
environment:
- MARATHON_ZK=zk://127.0.0.1:2181/marathon
- MARATHON_MASTER=zk://127.0.0.1:2181/mesos