Skip to content

Instantly share code, notes, and snippets.

@ConnorDoyle
Created September 10, 2014 06:12
Show Gist options
  • Save ConnorDoyle/b5a3fe1fa6d71679bb92 to your computer and use it in GitHub Desktop.
Save ConnorDoyle/b5a3fe1fa6d71679bb92 to your computer and use it in GitHub Desktop.

Revisions

  1. ConnorDoyle created this gist Sep 10, 2014.
    28 changes: 28 additions & 0 deletions bridged.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    {
    "id": "bridged-webapp",
    "cmd": "python3 -m http.server $PORT0",
    "cpus": 0.5,
    "mem": 64.0,
    "instances": 2,
    "container": {
    "type": "DOCKER",
    "docker": {
    "image": "python:3",
    "network": "BRIDGE",
    "portMappings": [
    { "containerPort": 8080, "hostPort": 0, "protocol": "tcp"},
    { "containerPort": 161, "hostPort": 0, "protocol": "udp"}
    ]
    }
    },
    "healthChecks": [
    {
    "protocol": "HTTP",
    "portIndex": 0,
    "path": "/",
    "gracePeriodSeconds": 5,
    "intervalSeconds": 20,
    "maxConsecutiveFailures": 3
    }
    ]
    }