-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathfly.toml
More file actions
72 lines (60 loc) · 1.54 KB
/
fly.toml
File metadata and controls
72 lines (60 loc) · 1.54 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
70
71
72
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
app = 'hoof-api'
primary_region = 'ewr'
[build]
[deploy]
release_command = "node --experimental-strip-types packages/db/scripts/migrate.ts"
[processes]
app = "node --experimental-strip-types apps/api/src/index.ts"
worker = "node --experimental-strip-types apps/worker/src/index.ts"
[env]
PORT = "8080"
WORKER_PORT = "8081"
ENVIRONMENT = "production"
SITE_URL = "https://playfulprogramming.com"
S3_PUBLIC_URL = "https://fly.storage.tigris.dev"
S3_ENDPOINT = "https://fly.storage.tigris.dev"
S3_BUCKET = "hoof-storage"
REDIS_URL = "redis://hoof-redis.internal:6379"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'suspend'
auto_start_machines = true
min_machines_running = 1
processes = ['app']
[[http_service.checks]]
grace_period = "10s"
interval = "30s"
method = "GET"
timeout = "5s"
path = "/"
[[http_service.checks]]
grace_period = "30s"
interval = "60s"
method = "GET"
timeout = "10s"
path = "/health/redis"
[[http_service.checks]]
grace_period = "30s"
interval = "60s"
method = "GET"
timeout = "10s"
path = "/health/postgres"
[checks]
[checks.worker_http]
type = "http"
grace_period = "10s"
interval = "30s"
method = "GET"
timeout = "5s"
path = "/"
port = 8081
processes = ['worker']
[[vm]]
size = "shared-cpu-1x"
[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
processes = ['worker']