Skip to content

Instantly share code, notes, and snippets.

@bfs
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bfs/b34b7e09b0a2360e60e1 to your computer and use it in GitHub Desktop.
Save bfs/b34b7e09b0a2360e60e1 to your computer and use it in GitHub Desktop.
marathon config for ruby web app
{
"id": "my-ruby-webapp",
"container": {
"type": "DOCKER",
"docker": {
"forcePullImage": true,
"image": "boritzio/docker-github-rubyapp",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 80, "hostPort": 0, "servicePort": 31117, "protocol": "tcp" }
],
"parameters": [
{ "key": "env", "value": "GITHUB_REPO=git@github.com:myco/my-repo.git" },
{ "key": "env", "value": "GIT_PATH=some-optional-subfolder" },
{ "key": "env", "value": "GIT_BRANCH=develop" },
{ "key": "env", "value": "DB_HOST=some-db-host" },
{ "key": "env", "value": "DB_PORT=5432" },
{ "key": "env", "value": "GITHUB_SSH_KEY=PUT_ESCAPED_KEY_HERE" }
]
}
},
"instances": 2,
"cpus": 2,
"mem": 4096,
"healthChecks": [
{
"protocol": "HTTP",
"portIndex": 0,
"path": "/my_app_status",
"gracePeriodSeconds": 300,
"intervalSeconds": 5,
"maxConsecutiveFailures": 3
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment