forked from d2iq-archive/marathon-ui
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
129 lines (121 loc) · 2.95 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '2'
services:
zookeeper:
image: zookeeper:3.4.11
hostname: zookeeper
ports:
- "2181:2181"
networks:
app_net:
ipv4_address: 172.16.190.2
mesos-master:
image: mesosphere/mesos-master:1.7.1
hostname: localhost
ports:
- "5050:5050"
networks:
app_net:
ipv4_address: 172.16.190.3
links:
- zookeeper
depends_on:
- zookeeper
environment:
MESOS_ZK: zk://zookeeper:2181/mesos
MESOS_QUORUM: 1
MESOS_CLUSTER: docker-compose
MESOS_HOSTNAME: localhost
MESOS_WORK_DIR: /var/tmp/mesos
MESOS_LOG_DIR: /var/log/mesos
LIBPROCESS_IP: 172.16.190.3
mesos-slave:
image: mesosphere/mesos-slave:1.7.1
privileged: true
hostname: mesos-slave
ports:
- "5051:5051"
networks:
app_net:
ipv4_address: 172.16.190.4
links:
- zookeeper:zookeeper
- mesos-master:master.mesos
depends_on:
- zookeeper
- mesos-master
environment:
MESOS_MASTER: zk://zookeeper:2181/mesos
MESOS_CONTAINERIZERS: mesos,docker
MESOS_PORT: 5051
MESOS_RESOURCES: ports(*):[11000-11999]
MESOS_HOSTNAME: mesos-slave
MESOS_WORK_DIR: /var/tmp/mesos
MESOS_LOG_DIR: /var/log/mesos
MESOS_SYSTEMD_ENABLE_SUPPORT: "false"
MESOS_FRAMEWORKS_HOME: /var/tmp/mesos/frameworks
MESOS_IMAGE_PROVIDERS: docker
MESOS_ISOLATION: filesystem/linux,docker/runtime
LIBPROCESS_IP: 172.16.190.4
volumes:
- /var/run/docker.sock:/var/run/docker.sock
marathon-service:
image: mesosphere/marathon:v1.6.587
ports:
- "8080:8080"
hostname: localhost
networks:
app_net:
ipv4_address: 172.16.190.5
links:
- zookeeper
- mesos-master
- mesos-slave
depends_on:
- zookeeper
- mesos-master
- mesos-slave
environment:
- MARATHON_ZK=zk://zookeeper:2181/marathon
- MARATHON_MASTER=zk://zookeeper:2181/mesos
- LIBPROCESS_IP=172.16.190.5
marathon-ui:
image: nginx:latest
hostname: localhost
ports:
- "8081:8080"
networks:
app_net:
ipv4_address: 172.16.190.6
links:
- marathon-service
environment:
- DNSDOCK_ALIAS=marathon.docker
volumes:
- ./resources/marathon-ui.nginx.conf:/etc/nginx/nginx.conf
- ./dist:/usr/share/nginx/html
- ./src/js/config/runtimeConfig.js:/usr/share/nginx/html/runtimeConfig.js
devenv:
hostname: localhost
networks:
app_net:
ipv4_address: 172.16.190.7
links:
- marathon-service
environment:
- DNSDOCK_ALIAS=marathon.docker
build:
context: .
volumes:
- ./src:/opt/marathon-ui/src
- dist:/opt/marathon-ui/dist
- ./src/js/config/runtimeConfig.js:/opt/marathon-ui/dist/runtimeConfig.js
volumes:
dist: {}
networks:
app_net:
driver: bridge
ipam:
driver: default
config:
-
subnet: 172.16.190.0/24