{ "apps": [ { "acceptedResourceRoles": null, "args": null, "backoffFactor": 1.15, "backoffSeconds": 1, "cmd": null, "constraints": [ ["hostname", "GROUP_BY", "2"] ], "container": { "docker": { "forcePullImage": true, "image": "my-company/frontend:branch", "portMappings": [ { "containerPort": 8080, "protocol": "tcp", "name": "frontend", "servicePort": 80 } ], "network": "USER", "privileged": false }, "type": "DOCKER", "volumes": [] }, "cpus": 0.1, "dependencies": [ "/my-app/backend" ], "disk": 0, "env": { "UPSTREAM_CTRL": "ctrl1.marathon.l4lb.thisdcos.directory" }, "executor": "", "gpus": 0, "healthChecks": [ { "gracePeriodSeconds": 30, "ignoreHttp1xx": false, "intervalSeconds": 2, "maxConsecutiveFailures": 3, "path": "/", "port": 8080, "portType": "PORT_NUMBER", "protocol": "HTTP", "timeoutSeconds": 10 } ], "id": "/my-app/frontend", "instances": 3, "ipAddress": { "networkName": "dcos" }, "labels": { "OWN_GROUP": "my-app", "OWN_ROLE": "frontend", "HAPROXY_0_REDIRECT_TO_HTTPS": "true", "HAPROXY_0_VHOST": "frontend.company.com", "HAPROXY_GROUP": "external", "HAPROXY_DEPLOYMENT_GROUP": "frontend", "HAPROXY_DEPLOYMENT_ALT_PORT": "80", "HAPROXY_DEPLOYMENT_STARTED_AT": "2017-01-01T00:00:00.000000" }, "maxLaunchDelaySeconds": 300, "mem": 100, "readinessChecks": [], "residency": null, "secrets": {}, "storeUrls": [], "taskKillGracePeriodSeconds": null, "upgradeStrategy": { "maximumOverCapacity": 0.5, "minimumHealthCapacity": 0.3 }, "user": null }, { "acceptedResourceRoles": null, "args": null, "backoffFactor": 1.15, "backoffSeconds": 1, "cmd": null, "constraints": [ ["hostname", "GROUP_BY", "2"] ], "container": { "docker": { "forcePullImage": true, "image": "my-company/backend:branch", "portMappings": [ { "containerPort": 3000, "protocol": "tcp", "name": "backend", "servicePort": 9991, "labels": { "VIP_0": "/ctrl1:3000" } } ], "network": "USER", "privileged": false }, "type": "DOCKER", "volumes": [] }, "cpus": 0.1, "dependencies": [], "disk": 0, "env": {}, "executor": "", "fetch": [], "gpus": 0, "healthChecks": [ { "command": { "value": "curl -s -o /dev/null -f -I http://localhost:3000/api/up" }, "gracePeriodSeconds": 20, "intervalSeconds": 5, "maxConsecutiveFailures": 3, "protocol": "COMMAND", "timeoutSeconds": 10 } ], "id": "/my-app/backend", "instances": 3, "ipAddress": { "networkName": "dcos" }, "labels": { "OWN_GROUP": "my-app", "OWN_ROLE": "backend", "HAPROXY_0_BACKEND_HTTP_OPTIONS": " option httpchk HEAD /api/up\n timeout check 10s\n", "HAPROXY_0_BACKEND_SERVER_OPTIONS": " server {serverName} {host_ipv4}:{port}{cookieOptions} check inter 2s fall 4 port 3000 {otherOptions}\n", "HAPROXY_0_BACKEND_WEIGHT": "10", "HAPROXY_0_FRONTEND_BACKEND_GLUE": " use_backend {backend} if {{ ssl_fc_sni backend.company.com }}\n", "HAPROXY_0_FRONTEND_HEAD": "\nfrontend {backend}\n bind {bindAddr}:{servicePort} ssl crt /etc/ssl/cert.pem\n mode {mode}\n", "HAPROXY_0_VHOST": "backend.company.com", "HAPROXY_GROUP": "external", "HAPROXY_DEPLOYMENT_GROUP": "backend", "HAPROXY_DEPLOYMENT_ALT_PORT": "9991", "HAPROXY_DEPLOYMENT_STARTED_AT": "2017-01-01T00:00:00.000000" }, "maxLaunchDelaySeconds": 300, "mem": 100, "readinessChecks": [], "residency": null, "secrets": {}, "storeUrls": [], "taskKillGracePeriodSeconds": null, "upgradeStrategy": { "maximumOverCapacity": 0.5, "minimumHealthCapacity": 0.3 }, "user": null } ], "dependencies": [], "id": "/my-app" }