Skip to content

Instantly share code, notes, and snippets.

@bradrobertson
Created October 14, 2016 13:32

Revisions

  1. bradrobertson created this gist Oct 14, 2016.
    35 changes: 35 additions & 0 deletions nginx.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,35 @@
    {
    "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": {
    }
    }