-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
94 lines (89 loc) · 2.1 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
85
86
87
88
89
90
91
92
93
94
version: "3"
services:
zookeeper:
image: zookeeper:3.4.13
hostname: zookeeper
ports:
- "2181:2181"
networks:
app_net:
ipv4_address: 172.16.121.2
mesos-master:
image: mesosphere/mesos-master:1.7.1
privileged: true
hostname: localhost
ports:
- "5050:5050"
networks:
app_net:
ipv4_address: 172.16.121.3
links:
- zookeeper
depends_on:
- zookeeper
environment:
MESOS_ZK: zk://zookeeper:2181/mesos
MESOS_QUORUM: 1
MESOS_CLUSTER: docker-compose
# MESOS_REGISTRY: replicated_log # default is in_memory for some reason
MESOS_HOSTNAME: localhost
MESOS_WORK_DIR: /var/tmp/mesos
MESOS_LOG_DIR: /var/log/mesos
LIBPROCESS_IP: 172.16.121.3
mesos-slave:
image: mesosphere/mesos-slave:1.7.1
privileged: true
hostname: localhost
ports:
- "5051:5051"
networks:
app_net:
ipv4_address: 172.16.121.4
links:
- zookeeper:zookeeper
- mesos-master:master.mesos
depends_on:
- zookeeper
- mesos-master
environment:
MESOS_MASTER: zk://zookeeper:2181/mesos
MESOS_CONTAINERIZERS: docker
MESOS_PORT: 5051
MESOS_RESOURCES: ports(*):[11000-11999]
MESOS_HOSTNAME: localhost
MESOS_WORK_DIR: /var/tmp/mesos
MESOS_LOG_DIR: /var/log/mesos
MESOS_SYSTEMD_ENABLE_SUPPORT: "false"
LIBPROCESS_IP: 172.16.121.4
volumes:
- /var/run/docker.sock:/var/run/docker.sock
marathon:
image: mesosphere/marathon:v1.8.667
entrypoint:
- ./bin/start
- --disable_ha
hostname: localhost
ports:
- "8080:8080"
networks:
app_net:
ipv4_address: 172.16.121.5
links:
- zookeeper
- mesos-master
depends_on:
- zookeeper
- mesos-master
- mesos-slave
environment:
- MARATHON_ZK=zk://zookeeper:2181/marathon
- MARATHON_MASTER=zk://zookeeper:2181/mesos
- LIBPROCESS_IP=172.16.121.5
networks:
app_net:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.16.121.0/24