Skip to content

Instantly share code, notes, and snippets.

@maauso
Last active June 28, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maauso/effac944366374cac56a21eff96557a8 to your computer and use it in GitHub Desktop.
Save maauso/effac944366374cac56a21eff96557a8 to your computer and use it in GitHub Desktop.
{
"id": "/test/ha/nginx/nginx",
"cmd": null,
"cpus": 0.1,
"mem": 32,
"disk": 0,
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
"docker": {
"image": "nginx",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 80,
"hostPort": 0,
"servicePort": 0,
"protocol": "tcp",
"labels": {}
}
],
"privileged": false,
"parameters": [],
"forcePullImage": false
}
},
"env": {
"SERVICE_NAME": "nginx-ha",
"SERVICE_80_CHECK_TCP": "true",
"SERVICE_80_CHECK_INTERVAL": "15s",
"SERVICE_80_CHECK_TIMEOUT": "3s"
},
"healthChecks": [
{
"protocol": "TCP",
"portIndex": 0,
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 0,
"ignoreHttp1xx": false
}
],
"labels": {
"HAPROXY_BACKEND_WEIGHT": "1",
"HAPROXY_MODE": "http",
"HAPROXY_BALANCE": "roundrobin",
"HAPROXY_GROUP": "test",
"HAPROXY_BACKEND_STICKY_OPTIONS" : "cookie nginx_using_marathon_lb insert indirect nocache\n",
"HAPROXY_VHOST": "miguel.haproxy.com"
},
"portDefinitions": [
{
"port": 0,
"protocol": "tcp",
"labels": {}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment