This repository has been archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
marathon.json
66 lines (66 loc) · 2.07 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
{
"container": {
"docker": {
"forcePullImage": true,
"image": "{{.docker_image}}",
"network": "BRIDGE",
"portMappings": [
{
"containerPort": {{.tat_listen_port}},
"hostPort": 0,
"protocol": "tcp"
}
]
},
"type": "DOCKER"
},
"cpus": 1,
"env": {
"TAT_DB_USER": "{{.tat_db_user}}",
"TAT_DB_PASSWORD": "{{.tat_db_password}}",
"TAT_DB_ADDR": "{{.tat_db_addr}}",
"TAT_DB_RS_TAGS": "{{.tat_db_rs_tags}}",
"TAT_LISTEN_PORT": "{{.tat_listen_port}}",
"TAT_EXPOSED_HOST": "{{.tat_exposed_host}}",
"TAT_EXPOSED_PORT": "{{.tat_exposed_port}}",
"TAT_EXPOSED_PATH": "{{.tat_exposed_path}}",
"TAT_EXPOSED_SCHEME": "{{.tat_exposed_scheme}}",
"TAT_SMTP_HOST": "{{.tat_smtp_host}}",
"TAT_SMTP_FROM": "{{.tat_smtp_from}}",
"TAT_SMTP_PORT": "{{.tat_smtp_port}}",
"TAT_SMTP_TLS": "{{.tat_smtp_tls}}",
"TAT_WEBSOCKET_ENABLED": "{{.tat_websocket_enabled}}",
"TAT_USERNAME_FROM_EMAIL": "{{.tat_username_from_email}}",
"TAT_ALLOWED_DOMAINS": "{{.tat_allowed_domains}}",
"TAT_DEFAULT_GROUP": "{{.tat_default_group}}",
"TAT_DEFAULT_DOMAIN": "{{.tat_default_domain}}",
"TAT_HEADER_TRUST_USERNAME": "{{.tat_header_trust_username}}",
"TAT_PRODUCTION": "{{.tat_production}}",
"TAT_READ_TIMEOUT": "{{.tat_read_timeout}}",
"TAT_WRITE_TIMEOUT": "{{.tat_write_timeout}}",
"TAT_DB_SOCKET_TIMEOUT": "{{.tat_db_socket_timeout}}"
},
"healthChecks": [
{
"path": "/version",
"protocol": "HTTP",
"portIndex": 0,
"gracePeriodSeconds": 15,
"intervalSeconds": 60,
"timeoutSeconds": 10,
"maxConsecutiveFailures": 3,
"ignoreHttp1xx": false
}
],
"id": "/{{.id}}",
"instances": {{.nb_instances}},
"labels": {
"HAPROXY_0_MODE": "{{.haproxy_0_mode}}",
"HAPROXY_0_VHOST": "{{.haproxy_0_vhost}}",
"USER_THOT_TOKEN": "{{.user_thot_token}}",
"USER_IOT_ID": "{{.user_iot_id}}",
"USER_IOT_KEY": "{{.user_iot_key}}"
},
"constraints": [["hostname", "UNIQUE"]],
"mem": {{.mem}}
}