Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
{
"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