-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (79 loc) · 1.96 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
version: '3'
networks:
default:
driver: bridge
ipam:
config:
- subnet: 172.18.0.0/16
services:
zookeeper:
image: zookeeper
ports:
- '2181:2181'
- '2888:2888'
- '3888:3888'
mesos-master:
image: mesosphere/mesos-master:1.3.0
ports:
- '5050:5050'
environment:
MESOS_PORT: 5050
MESOS_HOSTNAME: ${HOSTNAME}
MESOS_ZK: zk://zookeeper:2181/mesos
MESOS_QUORUM: 1
MESOS_REGISTRY: in_memory
MESOS_LOG_DIR: /var/log/mesos
MESOS_WORK_DIR: /var/lib/mesos
volumes:
- ./mesos/master/logs:/var/log/mesos
depends_on:
- zookeeper
mesos-slave:
image: mesosphere/mesos-slave:1.3.0
ports:
- '5051:5051'
environment:
MESOS_PORT: 5051
MESOS_HOSTNAME: ${HOSTNAME}
MESOS_MASTER: zk://zookeeper:2181/mesos
MESOS_SWITCH_USER: 0
MESOS_CONTAINERIZERS: docker,mesos
MESOS_LOG_DIR: /var/log/mesos
MESOS_WORK_DIR: /var/lib/mesos
volumes:
- ./mesos/slave/logs:/var/log/mesos
- /var/run/docker.sock:/var/run/docker.sock
- /cgroup:/cgroup
- /sys:/sys
- /usr/local/bin/docker:/usr/local/bin/docker
depends_on:
- zookeeper
marathon:
image: mesosphere/marathon
ports:
- '8080:8080'
environment:
MARATHON_HOSTNAME: ${HOSTNAME}
MARATHON_MASTER: zk://zookeeper:2181/mesos
MARATHON_ZK: zk://zookeeper:2181/marathon
depends_on:
- zookeeper
- mesos-master
extra_hosts:
- "${HOSTNAME}:172.18.0.1"
chronos:
image: mesosphere/chronos:v3.0.2
ports:
- '4400:8080'
environment:
PORT0: '8080'
PORT1: '8081'
# CHRONOS_HOSTNAME: ${HOSTNAME}
# CHRONOS_MASTER: zk://zookeeper:2181/mesos
# CHRONOS_ZK: zk://zookeeper:2181/chronos
command: --zk_hosts zookeeper:2181 --master zk://zookeeper:2181/mesos
depends_on:
- zookeeper
- mesos-master
extra_hosts:
- "${HOSTNAME}:172.18.0.1"