-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose-bare-mesos.yml
61 lines (57 loc) · 1.38 KB
/
docker-compose-bare-mesos.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
version: '3'
services:
zookeeper:
image: mesoscloud/zookeeper:3.4.6-ubuntu-14.04
hostname: "zookeeper"
container_name: zookeeper
ports:
- "2181:2181"
- "2888:2888"
- "3888:3888"
mesos-master:
image: datastrophic/mesos-master:1.1.0
hostname: "mesos-master"
container_name: master
privileged: true
environment:
- MESOS_HOSTNAME=mesos-master
- MESOS_CLUSTER=SMACK
- MESOS_QUORUM=1
- MESOS_ZK=zk://zookeeper:2181/mesos
- MESOS_LOG_DIR=/tmp/mesos/logs
links:
- zookeeper
ports:
- "5050:5050"
mesos-slave-1:
image: datastrophic/mesos-slave:1.1.0
hostname: "mesos-slave-1"
container_name: slave-1
privileged: true
environment:
- MESOS_HOSTNAME=mesos-slave-1
- MESOS_PORT=5151
- MESOS_MASTER=zk://zookeeper:2181/mesos
links:
- zookeeper
- mesos-master
ports:
- "5151:5151"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
mesos-slave-2:
image: datastrophic/mesos-slave:1.1.0
hostname: "mesos-slave-2"
container_name: slave-2
privileged: true
environment:
- MESOS_HOSTNAME=mesos-slave-2
- MESOS_PORT=5152
- MESOS_MASTER=zk://zookeeper:2181/mesos
links:
- zookeeper
- mesos-master
ports:
- "5152:5152"
volumes:
- /var/run/docker.sock:/var/run/docker.sock