-
Notifications
You must be signed in to change notification settings - Fork 0
/
db-fly.toml
68 lines (58 loc) · 1.12 KB
/
db-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
62
63
64
65
66
67
68
# fly.toml app configuration file generated for clovers-db on 2023-10-24T22:18:13+03:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "clovers-db"
primary_region = "arn"
[build]
image = "flyio/postgres-flex:15"
[env]
FLY_SCALE_TO_ZERO = "1h"
PRIMARY_REGION = "arn"
[[mounts]]
source = "pg_data"
destination = "/data"
[[services]]
protocol = "tcp"
internal_port = 5432
auto_start_machines = true
[[services.ports]]
port = 5432
handlers = ["pg_tls"]
[services.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 1000
[[services]]
protocol = "tcp"
internal_port = 5433
auto_start_machines = true
[[services.ports]]
port = 5433
handlers = ["pg_tls"]
[services.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 1000
[checks]
[checks.pg]
port = 5500
type = "http"
interval = "15s"
timeout = "10s"
path = "/flycheck/pg"
[checks.role]
port = 5500
type = "http"
interval = "15s"
timeout = "10s"
path = "/flycheck/role"
[checks.vm]
port = 5500
type = "http"
interval = "15s"
timeout = "10s"
path = "/flycheck/vm"
[[metrics]]
port = 9187
path = "/metrics"