Skip to content

Instantly share code, notes, and snippets.

@bfs
Created May 16, 2015 01:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save bfs/be77416a19bec481b584 to your computer and use it in GitHub Desktop.
Save bfs/be77416a19bec481b584 to your computer and use it in GitHub Desktop.
postgresql with postgis on marathon
{
"id": "my-postgis-app",
"container": {
"type": "DOCKER",
"docker": {
"image": "boritzio/docker-postgis",
"network": "BRIDGE",
"portMappings": [
{ "containerPort": 5432, "hostPort": 0, "servicePort": 31113, "protocol": "tcp" }
],
"parameters": [
{ "key": "env", "value": "SHARED_BUFFERS=4GB" }
]
},
"forcePullImage": true,
"volumes" : [
{
"containerPath": "/data/",
"hostPath": "/mnt/app-volumes/my-postgis-app/",
"mode": "RW"
}
]
},
"instances": 1,
"constraints": [["hostname", "CLUSTER", "somebox"]],
"cpus": 8,
"mem": 16384,
"healthChecks": [
{
"portIndex": 0,
"protocol": "TCP",
"gracePeriodSeconds": 5,
"intervalSeconds": 20,
"timeoutSeconds": 5,
"maxConsecutiveFailures": 3
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment