This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathdocker-compose.yml
63 lines (59 loc) · 1.56 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
zookeeper:
image: jplock/zookeeper:3.4.5
hostname: zookeeper
mesosmaster:
image: mesosphere/mesos-modules-dev:0.27.1
hostname: mesosmaster
command: /mesos/build/bin/mesos-master.sh
environment:
- MESOS_QUORUM=1
- MESOS_WORK_DIR=/var/lib/mesos
- MESOS_LOG_DIR=/var/log
- MESOS_ZK=zk://zookeeper:2181/mesos
- MESOS_ROLES=public
volumes:
- /var/log/mesos:/var/log/mesos
- ./framework/:/framework
ports:
- "5050:5050"
links:
- zookeeper
slave:
build: .
privileged: true
links:
- mesosmaster
- zookeeper
- etcd
volumes:
- /var/log/mesos:/var/log/mesos
- ./framework:/framework
environment:
- MESOS_MASTER=zk://zookeeper:2181/mesos
- MESOS_EXECUTOR_REGISTRATION_TIMEOUT=5mins
- MESOS_CONTAINERIZERS=mesos
- MESOS_ISOLATOR=cgroups/cpu,cgroups/mem
- MESOS_LOG_DIR=/var/log
- MESOS_RESOURCES=ports(*):[9000-31100]
- MESOS_MODULES=file:///calico/modules.json
- MESOS_ISOLATION=com_mesosphere_mesos_NetworkIsolator
- MESOS_HOOKS=com_mesosphere_mesos_NetworkHook
- ETCD_AUTHORITY=etcd:4001
dns:
- 192.168.255.254
marathon:
image: mesosphere/marathon:v0.14.0
environment:
- MARATHON_MASTER=zk://zookeeper:2181/mesos
- MARATHON_ZK=zk://zookeeper:2181/marathon
- MARATHON_MAX_TASKS_PER_OFFER=32
ports:
- "8080:8080"
links:
- mesosmaster
- zookeeper
etcd:
image: quay.io/coreos/etcd:v2.0.11
environment:
- ETCD_ADVERTISE_CLIENT_URLS=http://etcd:2379,http://etcd:4001
- ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379,http://0.0.0.0:4001