-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
68 lines (65 loc) · 1.54 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
version: "2"
networks:
internal:
driver: bridge
ipam:
config:
- subnet: ${NET}.0/24
gateway: ${NET}.1
services:
zk:
env_file:
- .env
image: jplock/zookeeper:${ZOOKEEPER_VERSION}
networks:
internal:
ipv4_address: ${NET}.2
ports:
- ${ZOOKEEPER_EXPOSE_PORT}:2181
mesos-master:
env_file:
- .env
image: mesosphere/mesos-master:${MESOS_DOCKER_VERSION}
networks:
internal:
ipv4_address: ${NET}.3
environment:
MESOS_ZK: zk://${NET}.2:2181/mesos
MESOS_QUORUM: 1
MESOS_CLUSTER: docker-compose
MESOS_REGISTRY: replicated_log
depends_on:
- zk
ports:
- ${MESOS_EXPOSE_PORT}:5050
mesos-slave:
image: mesosphere/mesos-slave:${MESOS_DOCKER_VERSION}
networks:
internal:
ipv4_address: ${NET}.4
environment:
MESOS_MASTER: zk://${NET}.2:2181/mesos
MESOS_CONTAINERIZERS: docker,mesos
MESOS_PORT: 5051
MESOS_RESOURCES: ports(*):[11000-11999]
MESOS_WORK_DIR: /tmp/mesos
MESOS_HOSTNAME: ${NET}.4
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- zk
- mesos-master
marathon:
image: mesosphere/marathon:${MARATHON_DOCKER_VERSION}
command: --zk zk://${NET}.2:2181/mesos
environment:
MARATHON_MASTER: zk://${NET}.2:2181/mesos
networks:
internal:
ipv4_address: ${NET}.5
ports:
- ${MARATHON_EXPOSE_PORT}:8080
depends_on:
- zk
- mesos-master