-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
64 lines (51 loc) · 1.11 KB
/
Copy pathfly.toml
File metadata and controls
64 lines (51 loc) · 1.11 KB
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
# Fly.io deployment config for SearchBox (Rust).
app = "searchbox"
primary_region = "sjc"
[build]
dockerfile = "Dockerfile"
[env]
SEARCHBOX_HOST = "0.0.0.0"
SEARCHBOX_PORT = "8080"
[deploy]
strategy = "rolling"
[[services]]
internal_port = 8080
protocol = "tcp"
[services.concurrency]
type = "connections"
hard_limit = 100
soft_limit = 80
[[services.ports]]
force_https = true
handlers = ["http"]
port = 80
[[services.ports]]
handlers = ["tls", "http"]
port = 443
[[services.tcp_checks]]
grace_period = "10s"
interval = "15s"
restart_limit = 0
timeout = "2s"
[[services.http_checks]]
grace_period = "10s"
interval = "30s"
method = "GET"
path = "/api/health"
protocol = "http"
restart_limit = 0
timeout = "5s"
[services.http_checks.headers]
User-Agent = "Fly-Health-Check"
[[mounts]]
source = "searchbox_data"
destination = "/app/vault"
initial_size = "10gb"
[[mounts]]
source = "searchbox_meili"
destination = "/app/meili_data"
initial_size = "5gb"
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 1024