31 lines
815 B
TOML
31 lines
815 B
TOML
|
|
# Fly.io — one machine, scale to zero, SQLite on a volume, video on R2.
|
||
|
|
# `app` is set by `fly launch`. After launch, set secrets (see DEPLOY.md) and:
|
||
|
|
# fly deploy
|
||
|
|
app = "lumet"
|
||
|
|
primary_region = "iad"
|
||
|
|
|
||
|
|
[build]
|
||
|
|
dockerfile = "Dockerfile"
|
||
|
|
|
||
|
|
[env]
|
||
|
|
DJANGO_DEBUG = "0"
|
||
|
|
DJANGO_ALLOWED_HOSTS = ".fly.dev"
|
||
|
|
DJANGO_DB_PATH = "/data/db.sqlite3"
|
||
|
|
# also set DJANGO_CSRF_TRUSTED="https://<your-app>.fly.dev" (secret or env) for admin
|
||
|
|
|
||
|
|
[http_service]
|
||
|
|
internal_port = 8000
|
||
|
|
force_https = true
|
||
|
|
auto_stop_machines = "stop" # scale to zero when idle
|
||
|
|
auto_start_machines = true # wake on the next request
|
||
|
|
min_machines_running = 0
|
||
|
|
|
||
|
|
[[vm]]
|
||
|
|
size = "shared-cpu-1x"
|
||
|
|
memory = "512mb"
|
||
|
|
|
||
|
|
# SQLite + uploads scratch live here (survives machine stop/start)
|
||
|
|
[[mounts]]
|
||
|
|
source = "data"
|
||
|
|
destination = "/data"
|