-
Notifications
You must be signed in to change notification settings - Fork 0
/
fly.toml
61 lines (52 loc) · 1.09 KB
/
fly.toml
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
app = 'your-app-name'
primary_region = 'iad'
[build]
image = "gcr.io/cloud-sql-connectors/cloud-sql-proxy:2-alpine"
[deploy]
strategy = "bluegreen"
[[vm]]
size = 'shared-cpu-1x'
memory = "256mb"
cpus = 1
[env]
# instances
CSQL_PROXY_INSTANCE_CONNECTION_NAME_0 = "project:region:instance?port=5432"
# proxy
CSQL_PROXY_ADDRESS = "::"
CSQL_PROXY_PORT = "5432"
# health check
CSQL_PROXY_HEALTH_CHECK = "true"
CSQL_PROXY_HTTP_PORT = "9801"
CSQL_PROXY_HTTP_ADDRESS = "::"
# auth
CSQL_PROXY_CREDENTIALS_FILE = "/run/secrets/google_application_credentials.json"
# metrics
CSQL_PROXY_PROMETHEUS = "true"
[[files]]
guest_path = "/run/secrets/google_application_credentials.json"
secret_name = "GOOGLE_APPLICATION_CREDENTIALS_JSON"
[metrics]
path = "/metrics"
port = 9091
[checks.startup]
type = "http"
method = "GET"
path = "/startup"
port = 9801
interval = "5s"
timeout = "2s"
[checks.liveness]
type = "http"
method = "GET"
path = "/startup"
port = 9801
interval = "5s"
timeout = "2s"
[checks.readiness]
type = "http"
method = "GET"
path = "/readiness"
port = 9801
grace_period = "1s"
interval = "5s"
timeout = "2s"