Last active
August 24, 2016 14:22
-
-
Save gwgundersen/b6e64ff0aa95a789c0f168b9f5052987 to your computer and use it in GitHub Desktop.
Marathon app definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "/myapp", | |
"cmd": null, | |
"cpus": 1, | |
"mem": 4096, | |
"disk": 0, | |
"instances": 1, | |
"constraints": [ | |
[ | |
"hostname", | |
"CLUSTER", | |
"mycomputer" | |
] | |
], | |
"container": { | |
"type": "DOCKER", | |
"volumes": [], | |
"docker": { | |
"image": "myorg/myapp:latest", | |
"network": "BRIDGE", | |
"portMappings": [ | |
{ | |
"containerPort": 8080, | |
"hostPort": 0, | |
"servicePort": 10015, | |
"protocol": "tcp", | |
"labels": {} | |
} | |
], | |
"privileged": false, | |
"parameters": [], | |
"forcePullImage": true | |
} | |
}, | |
"healthChecks": [ | |
{ | |
"path": "/myapp", | |
"protocol": "HTTP", | |
"portIndex": 0, | |
"gracePeriodSeconds": 10, | |
"intervalSeconds": 60, | |
"timeoutSeconds": 10, | |
"maxConsecutiveFailures": 3, | |
"ignoreHttp1xx": false | |
} | |
], | |
"labels": { | |
"public": "true" | |
}, | |
"portDefinitions": [ | |
{ | |
"port": 10015, | |
"protocol": "tcp", | |
"labels": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment