Here is an example how to run Nginx Marathon App in DCOS with VIP:

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
{
"id": "nginx",
"cmd": null,
"cpus": 1,
"mem": 128,
"disk": 0,
"instances": 1,
"container": {
"docker": {
"image": "nginx",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"protocol": "tcp",
"name": null,
"labels": {
"VIP_0": "1.1.1.4:8000"
}
}
]
},
"type": "DOCKER",
"volumes": []
},
"env": {},
"labels": {
"HAPROXY_GROUP": "external"
},
"healthChecks": []
}