Created
May 16, 2015 01:00
-
-
Save bfs/be77416a19bec481b584 to your computer and use it in GitHub Desktop.
postgresql with postgis on marathon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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