-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_marathon.json
52 lines (52 loc) · 1.43 KB
/
example_marathon.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"volumes": null,
"id": "/deepstream-io",
"cmd": null,
"args": null,
"user": null,
"env": {
"DEEPSTREAM_PORT": "6025",
"MONGODB_CONNECTION_STRING": "mongodb://user:[email protected]:27017",
"DEEPSTREAM_PASSWORD": "RGZG5Sz1Vs++MsNfGaWULaPboKTvTNdqxKFPlAnoSOQ=2dj6ms28tuAzVTbUaFhsNg==",
"REDIS_CACHE_HOST": "redis1.mydomain.com",
"REDIS_MSG_HOST": "redis2.mydomain.com"
},
"instances": 1,
"cpus": 0.2,
"mem": 256,
"disk": 0,
"gpus": 0,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"container": {
"docker": {
"image": "rohithzr/deepstream.io:v5",
"forcePullImage": true,
"privileged": false,
"portMappings": [{
"containerPort": 6025,
"protocol": "tcp"
}],
"network": "BRIDGE"
}
},
"healthChecks": [{
"protocol": "HTTP",
"path": "/health-check",
"gracePeriodSeconds": 300,
"intervalSeconds": 60,
"timeoutSeconds": 20,
"maxConsecutiveFailures": 3,
"ignoreHttp1xx": false
}],
"upgradeStrategy": {
"minimumHealthCapacity": 1,
"maximumOverCapacity": 1
},
"labels": {
"HAPROXY_GROUP": "external,internal",
"HAPROXY_0_VHOST": "deepstream.mydomain.com",
"HAPROXY_0_REDIRECT_TO_HTTPS": "true"
}
}