Skip to content

Fly.io Deployment

Strata's hosted preview runs on Fly.io at strata-notebook.fly.dev.

Prerequisites

  • Fly CLI installed
  • fly auth login completed

Deploy

# First time
fly apps create strata-notebook
fly volumes create strata_data --region sjc --size 5
fly deploy

# Subsequent deploys
fly deploy

Configuration

The fly.toml at the repo root configures:

  • VM size: shared-cpu-4x with 2GB RAM
  • Auto-scaling: machines suspend when idle, auto-start on requests
  • Persistent storage: 5GB volume at /home/strata/.strata with auto-extend
  • Health check: HTTP on /health every 15s

Key environment variables

[env]
  STRATA_DEPLOYMENT_MODE = "personal"
  STRATA_ALLOW_REMOTE_CLIENTS_IN_PERSONAL = "true"
  STRATA_NOTEBOOK_PYTHON_VERSIONS = '["3.12","3.13"]'
  UV_PYTHON_DOWNLOADS = "automatic"

Monitoring

fly logs          # Stream logs
fly status        # Machine status
fly ssh console   # SSH into the machine