-
Notifications
You must be signed in to change notification settings - Fork 10
/
marathon.json
153 lines (153 loc) · 3.96 KB
/
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
{
"id": "/sys/portus",
"apps": [
{
"id": "web",
"cpus": 0.1,
"mem": 1024,
"instances": 1,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"labels": {
"owner": "sys",
"HAPROXY_GROUP": "external",
"HAPROXY_0_FRONTEND_HEAD": "",
"HAPROXY_0_FRONTEND_BACKEND_GLUE": "",
"HAPROXY_0_BACKEND_SERVER_OPTIONS": " server {serverName} {host_ipv4}:{port}{cookieOptions} check ssl verify none\n",
"HAPROXY_0_VHOST": "portus.kato.one",
"HAPROXY_DEPLOYMENT_GROUP": "sys_portus"
},
"ipAddress": {
"networkName": "devel",
"labels": {
"app": "web",
"group": "portus"
},
"discovery": {
"ports": [
{ "number": 443, "name": "portus", "protocol": "tcp" }
]
}
},
"container": {
"type": "MESOS",
"docker": {
"image": "quay.io/kato/portus:v2.2.0-1",
"forcePullImage": false
}
},
"env": {
"MARIADB_ADAPTER": "mysql2",
"MARIADB_ENCODING": "utf8",
"MARIADB_HOST": "db-portus-sys",
"MARIADB_PORT": "3306",
"MARIADB_USER": "portus",
"MARIADB_PASSWORD": "",
"MARIADB_DATABASE": "portus",
"RACK_ENV": "production",
"RAILS_ENV": "production",
"PUMA_SSL_KEY": "/mnt/mesos/sandbox/certs/server-key.pem",
"PUMA_SSL_CRT": "/mnt/mesos/sandbox/certs/server-crt.pem",
"PUMA_PORT": "443",
"PUMA_WORKERS": "4",
"SSL_CERT_DIR": "/mnt/mesos/sandbox/certs",
"PORTUS_MACHINE_FQDN": "web-portus-sys",
"PORTUS_SECRET_KEY_BASE": "",
"PORTUS_DELETE_ENABLED": "true",
"PORTUS_ENCRYPTION_PRIVATE_KEY_PATH": "/mnt/mesos/sandbox/certs/server-key.pem",
"PORTUS_PORTUS_PASSWORD": ""
},
"healthChecks": [
{
"port": 443,
"protocol": "MESOS_HTTPS",
"gracePeriodSeconds": 120,
"intervalSeconds": 30,
"maxConsecutiveFailures": 3,
"timeoutSeconds": 5
}
],
"uris": [
"file:///etc/certs/certs.tar.bz2"
],
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 1
},
"dependencies": [
"db"
]
},
{
"id": "db",
"cpus": 0.1,
"mem": 1024,
"instances": 1,
"backoffSeconds": 1,
"backoffFactor": 1.15,
"maxLaunchDelaySeconds": 3600,
"labels": {
"owner": "sys"
},
"ipAddress": {
"networkName": "devel",
"labels": {
"app": "db",
"group": "portus"
},
"discovery": {
"ports": [
{ "number": 3306, "name": "mariadb", "protocol": "tcp" }
]
}
},
"container": {
"type": "MESOS",
"volumes": [
{
"mode": "RW",
"containerPath": "mysqldata",
"external": {
"size": 1,
"name": "cell-1-dub-sys-portus-db",
"provider": "dvdi",
"options": {
"dvdi/driver": "rexray"
}
}
},
{
"containerPath": "/var/lib/mysql",
"hostPath": "mysqldata",
"mode": "RW"
}
],
"docker": {
"image": "library/mariadb:10",
"forcePullImage": false
}
},
"env": {
"MYSQL_ROOT_PASSWORD": "",
"MYSQL_USER": "portus",
"MYSQL_PASSWORD": "",
"MYSQL_DATABASE": "portus"
},
"healthChecks": [
{
"port": 3306,
"protocol": "MESOS_TCP",
"gracePeriodSeconds": 120,
"intervalSeconds": 30,
"maxConsecutiveFailures": 3,
"timeoutSeconds": 5
}
],
"upgradeStrategy": {
"minimumHealthCapacity": 0,
"maximumOverCapacity": 0
}
}
]
}