-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
99 lines (95 loc) · 2.22 KB
/
docker-compose.yaml
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
95
96
97
98
99
# set an environmental variable called HOST_IP that
# has the host's IP address
version: '2'
services:
zookeeper:
image: zookeeper
hostname: zookeeper
ports:
- 2181:2181
- 2888:2888
- 3888:3888
networks:
app_net:
ipv4_address: 172.16.121.2
mesos-master:
image: mesosphere/mesos-master:1.4.1
privileged: true
hostname: localhost
networks:
app_net:
ipv4_address: 172.16.121.3
depends_on:
- zookeeper
links:
- zookeeper
ports:
- 5050:5050
environment:
- MESOS_ZK=zk://zookeeper:2181/mesos
- MESOS_QUORUM=1
- MESOS_CLUSTER=docker-compose
- MESOS_REGISTRY=in_memory
- 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.4.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
# - MESOS_LAUNCHER=posix
# - MESOS_LOGGING_LEVEL=INFO
volumes:
- /var/run/docker.sock:/var/run/docker.sock
marathon:
image: mesosphere/marathon
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