Skip to content

Instantly share code, notes, and snippets.

@moderation
Created January 25, 2016 19:17
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 moderation/5e979b9ea0c51be8ac6a to your computer and use it in GitHub Desktop.
Save moderation/5e979b9ea0c51be8ac6a to your computer and use it in GitHub Desktop.
tns_marathon_weave
{
"id": "/tns/app",
"container": {
"type": "DOCKER",
"docker": {
"image": "peterbourgon/tns-app",
"network": "BRIDGE",
"parameters": [
{
"key": "hostname",
"value": "app.weave.local"
},
{
"key": "env",
"value": "WEAVE_CIDR=net:10.33.7.0/24 net:10.33.8.0/24"
}
]
}
},
"cpus": 0.2,
"mem": 512,
"instances": 1,
"labels": {
"tns": "app"
}
}
{
"id": "/tns/db",
"container": {
"type": "DOCKER",
"docker": {
"image": "peterbourgon/tns-db",
"network": "BRIDGE",
"parameters": [
{
"key": "hostname",
"value": "db.weave.local"
},
{
"key": "env",
"value": "WEAVE_CIDR=net:10.33.7.0/24"
}
]
}
},
"cpus": 0.2,
"mem": 512,
"instances": 1,
"labels": {
"tns": "db"
}
}
{
"id": "/tns/lb",
"container": {
"type": "DOCKER",
"docker": {
"image": "peterbourgon/tns-lb",
"network": "BRIDGE",
"parameters": [
{
"key": "hostname",
"value": "lb.weave.local"
},
{
"key": "env",
"value": "WEAVE_CIDR=net:10.33.8.0/24"
}
],
"portMappings": [
{
"containerPort": 80,
"hostPort": 0,
"protocol": "tcp"
}
]
}
},
"cpus": 0.2,
"mem": 512,
"instances": 1,
"labels": {
"tns": "lb"
},
"healthChecks": [
{
"gracePeriodSeconds": 30,
"intervalSeconds": 30,
"maxConsecutiveFailures": 3,
"path": "/",
"portIndex": 0,
"protocol": "HTTP",
"timeoutSeconds": 5
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment