forked from d2iq-archive/tweeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tweeter.json
40 lines (40 loc) · 972 Bytes
/
tweeter.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
{
"id": "/tweeter",
"cmd": "export KAFKA_BROKERS='broker.kafka.l4lb.thisdcos.directory:9092' && until rake cassandra:setup; do sleep 5; done && rails server",
"cpus": 0.25,
"mem": 256,
"disk": 0,
"instances": 3,
"container": {
"type": "DOCKER",
"docker": {
"image": "mesosphere/tweeter",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": 3000,
"hostPort": 0,
"servicePort": 10000,
"labels": {
"VIP_0": "1.1.1.1:30000"
}
}
]
}
},
"env": {
"CASSANDRA_HOSTS": "node-0.cassandra.mesos",
"RAILS_ENV": "production",
"SECRET_KEY_BASE": "be6ea21bd0e8ddad06accbdfbfcbc6f120815744a8177fb1196442c1670401c86a1d020f1fb62f9b7d6bacc8cf818de277d23d3f3e7dcf704ca88965e5b9ed86"
},
"healthChecks": [
{
"path": "/",
"protocol": "HTTP",
"portIndex": 0
}
],
"labels": {
"HAPROXY_GROUP": "external"
}
}