Last active
December 22, 2015 14:02
-
-
Save x-cray/48cebdf142ba0e2d37bd to your computer and use it in GitHub Desktop.
Marathon app payload template
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": "/app/$environment/test-server", | |
"labels": { | |
"version": "$tag", | |
"environment": "$environment" | |
}, | |
"env": { | |
"SERVICE_TAGS": "$environment,internal-listen-http-3000", | |
"SERVICE_NAME": "test-server" | |
}, | |
"cpus": 0.05, | |
"mem": 64.0, | |
"instances": $instances, | |
"args": [ | |
"service-wrapper.sh", "dockerhost:18080", "dockerhost:18500", "app/$environment/test-server", | |
"node", "/app/server.js" | |
], | |
"container": { | |
"type": "DOCKER", | |
"docker": { | |
"image": "registry.local/test-server:$tag", | |
"forcePullImage": true, | |
"network": "BRIDGE", | |
"portMappings": [{ | |
"containerPort": 3000 | |
}] | |
} | |
}, | |
"healthChecks": [{ | |
"protocol": "HTTP", | |
"path": "/healthcheck", | |
"gracePeriodSeconds": 2, | |
"intervalSeconds": 10, | |
"maxConsecutiveFailures": 3 | |
}], | |
"upgradeStrategy": { | |
"minimumHealthCapacity": 0.5, | |
"maximumOverCapacity": 0.5 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment