-
-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathfly.toml
More file actions
45 lines (38 loc) · 1022 Bytes
/
Copy pathfly.toml
File metadata and controls
45 lines (38 loc) · 1022 Bytes
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
# Fly.io deployment config for TimeTracker
# Requires external PostgreSQL (Fly Postgres, Neon, Supabase, etc.)
#
# Setup:
# fly launch --no-deploy --image ghcr.io/drytrix/timetracker:latest
# fly secrets set SECRET_KEY="$(openssl rand -hex 32)"
# fly secrets set DATABASE_URL="postgresql+psycopg2://user:pass@host:5432/timetracker"
# fly secrets set REDIS_ENABLED="false"
# fly deploy
app = "timetracker"
primary_region = "ams"
[build]
image = "ghcr.io/drytrix/timetracker:latest"
[env]
FLASK_ENV = "production"
AUTH_METHOD = "local"
REDIS_ENABLED = "false"
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = "stop"
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[http_service.concurrency]
type = "connections"
hard_limit = 100
soft_limit = 80
[[http_service.checks]]
grace_period = "60s"
interval = "30s"
method = "GET"
path = "/_ready"
timeout = "10s"
[[vm]]
memory = "1gb"
cpu_kind = "shared"
cpus = 1