-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfly.toml
More file actions
69 lines (56 loc) · 1.47 KB
/
Copy pathfly.toml
File metadata and controls
69 lines (56 loc) · 1.47 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
65
66
67
68
69
# Fly.io configuration for Demand Forecasting API
# Docs: https://fly.io/docs/reference/configuration/
app = "demand-forecast-api"
primary_region = "iad" # Virginia — change to nearest: ams, lhr, sin, syd, gru
[build]
dockerfile = "Dockerfile"
[env]
PORT = "8080"
DF_ENVIRONMENT = "production"
DF_LOG_LEVEL = "INFO"
DF_REDIS_ENABLED = "true"
DF_REDIS_URL = "redis://localhost:6379/0"
DF_KAFKA_CONSUMER_ENABLED = "false"
DF_DRIFT_CHECK_ENABLED = "false"
DF_MODEL_REGISTRY_PATH = "/data/models"
DF_CORS_ORIGINS = "https://demand-forecast-api.fly.dev"
[[services]]
protocol = "tcp"
internal_port = 8080
[[services.ports]]
port = 80
handlers = ["http"]
force_https = true
[[services.ports]]
port = 443
handlers = ["tls", "http"]
force_https = true
[[services.http_checks]]
interval = "15s"
timeout = "5s"
grace_period = "30s"
method = "get"
path = "/api/v1/health"
protocol = "http"
tls_skip_verify = true
[[services.http_checks]]
interval = "10s"
timeout = "3s"
grace_period = "5s"
method = "get"
path = "/api/v1/health"
protocol = "http"
headers = { Type = "readiness" }
[deploy]
release_command = "python -c 'from src.utils.config import get_app_config; print(\"Config OK\")'"
[[vm]]
cpu_kind = "shared"
cpus = 1
memory_mb = 512
[[statics]]
guest_path = "/app/static"
url_prefix = "/static"
[mounts]
source = "model_data"
destination = "/data"
initial_size = "3gb"