Skip to content

Instantly share code, notes, and snippets.

@gwgundersen
Last active August 24, 2016 14:22
Show Gist options
  • Save gwgundersen/b6e64ff0aa95a789c0f168b9f5052987 to your computer and use it in GitHub Desktop.
Save gwgundersen/b6e64ff0aa95a789c0f168b9f5052987 to your computer and use it in GitHub Desktop.
Marathon app definition
{
"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