Skip to content

Instantly share code, notes, and snippets.

@bradrobertson
Created October 14, 2016 13:32
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 bradrobertson/43a319f4c981869da80034e2bf5bfa92 to your computer and use it in GitHub Desktop.
Save bradrobertson/43a319f4c981869da80034e2bf5bfa92 to your computer and use it in GitHub Desktop.
DCOS Nginx Service config
{
"id": "/nginx",
"container": {
"type": "DOCKER",
"docker": {
"image": "nginx",
"network": "BRIDGE",
"portMappings": [
{
"hostPort": 0,
"containerPort": 80,
"labels": {
"VIP_0": "/nginx:80"
}
}
],
"forcePullImage": true
}
},
"instances": 5,
"cpus": 0.1,
"mem": 128,
"disk": 64,
"healthChecks": [{
"protocol": "HTTP",
"path": "/",
"portIndex": 0,
"timeoutSeconds": 10,
"gracePeriodSeconds": 10,
"intervalSeconds": 2,
"maxConsecutiveFailures": 10
}],
"labels": {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment