Skip to content

Instantly share code, notes, and snippets.

@degnome
Created April 26, 2016 20:36
Show Gist options
  • Save degnome/5e7b0ff68fab6f26dd4231bfe43c99ff to your computer and use it in GitHub Desktop.
Save degnome/5e7b0ff68fab6f26dd4231bfe43c99ff to your computer and use it in GitHub Desktop.
{
"id": "test",
"instances": 3,
"cpus": 0.1,
"mem": 65,
"container": {
"type": "DOCKER",
"docker": {
"image": "degnome/hello",
"network": "BRIDGE",
"portMappings": [
{ "hostPort": 0, "containerPort": 80, "servicePort": 10000 }
],
"forcePullImage":true
}
},
"healthChecks": [{
"protocol": "HTTP",
"path": "/",
"portIndex": 0,
"timeoutSeconds": 10,
"gracePeriodSeconds": 10,
"intervalSeconds": 2,
"maxConsecutiveFailures": 10
}],
"env": {
"MON_GROUP": "irvui-ts-web",
"MON_APP": "irvui-ts-web",
"MON_CONTACT": "[email protected]",
"PORT": "80",
"PING": "true",
"NODE_ENV": "production"
},
"labels":{
"HAPROXY_GROUP":"external",
"HAPROXY_0_VHOST":"{HOSTNAME}",
"HAPROXY_0_MODE":"http"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment