Skip to content

Instantly share code, notes, and snippets.

@tgermain
Created July 1, 2015 14:24
Show Gist options
  • Save tgermain/32e0387ba9f1491a2aad to your computer and use it in GitHub Desktop.
Save tgermain/32e0387ba9f1491a2aad to your computer and use it in GitHub Desktop.
Example application with 2 ports mapped
{
"id": "easy-app-python",
"cpus": 0.2,
"mem": 32.0,
"instances": 2,
"container": {
"docker": {
"type": "DOCKER",
"image": "docker.io/tgermain/easy_app_python:v3",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 5000, "hostPort": 0,"servicePort":30501, "protocol": "tcp" },
{ "containerPort": 5000, "hostPort": 0,"servicePort":0, "protocol": "tcp" }
]
}
},
"env":{
"SERVICE_NAME":"easy-python"
},
"labels": {
"HAPROXY_HTTP": "false"
}
}
{
"args":null,
"backoffFactor":1.15,
"backoffSeconds":1,
"cmd":"",
"constraints":[
],
"container":{
"docker":{
"image":"docker.io/tgermain/easy_app_python:v3",
"parameters":[
],
"privileged":false,
"network":"BRIDGE",
"portMappings":[
{
"containerPort":5000,
"hostPort":0,
"servicePort":30501,
"protocol":"tcp"
},
{
"containerPort":5000,
"hostPort":0,
"servicePort":10002,
"protocol":"tcp"
}
],
"forcePullImage":false
},
"type":"DOCKER",
"volumes":[
]
},
"cpus":0.2,
"dependencies":[
],
"disk":0,
"env":{
"SERVICE_NAME":"easy-python"
},
"executor":"",
"labels":{
"HAPROXY_HTTP":"false"
},
"healthChecks":[
],
"id":"/easy-app-python",
"instances":2,
"mem":32,
"ports":[
30501,
10002
],
"requirePorts":false,
"storeUrls":[
],
"upgradeStrategy":{
"minimumHealthCapacity":1,
"maximumOverCapacity":1
},
"uris":[
],
"user":"",
"version":"2015-07-01T14:19:56.597Z"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment