forked from FuzzWorley/rubot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conductor.json
68 lines (68 loc) · 1.75 KB
/
conductor.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{
"api-key": "$CONDUCTOR_API_KEY",
"enable-db": true,
"app-json": {
"id": "/$GROUP/$SERVICE",
"cpus": 0.1,
"mem": 512,
"instances": 1,
"constraints": [["hostname", "UNIQUE"], ["az", "GROUP_BY", "3"]],
"env": {
"SERVICE_3000_NAME": "$SERVICE",
"SERVICE_3000_TAGS": "public",
"SLACK_TOKEN": "$SLACK_TOKEN",
"CLIENT_ID": "$CLIENT_ID",
"CLIENT_SECRET": "$CLIENT_SECRET",
"REGISTRAR_PW": "$REGISTRAR_PW",
"SEGMENT_WRITE_KEY": "$SEGMENT_WRITE_KEY",
"SECRET_KEY_BASE": "$SECRET_KEY_BASE",
"RAILS_ENV": "production",
"DB_HOST": "{{ db_host }}",
"DB_NAME": "{{ db_name }}",
"DB_PASSWORD": "{{ db_password }}",
"DB_PORT": "{{ db_port }}",
"DB_USER": "{{ db_user }}"
},
"container": {
"type": "DOCKER",
"docker": {
"image": "$ORG/$NAME:$VERSION",
"network": "BRIDGE",
"parameters": [
{
"key": "log-driver",
"value": "syslog"
},
{
"key": "log-opt",
"value": "syslog-address=tcp://logstash.service.consul:5544"
},
{
"key": "log-opt",
"value": "syslog-tag=$SERVICE"
}
],
"portMappings": [
{ "containerPort": 3000, "protocol": "tcp" }
]
}
},
"uris": [
"http://marathon.service.consul:8080/v2/artifacts/etc/.dockercfg"
],
"healthChecks": [
{
"path": "/healthcheck",
"protocol": "HTTP",
"gracePeriodSeconds": 30,
"intervalSeconds": 20,
"timeoutSeconds": 10,
"maxConsecutiveFailures": 3
}
],
"upgradeStrategy": {
"minimumHealthCapacity": 1,
"maximumOverCapacity": 0
}
}
}