Self-host your capsule
Fly.io
You can easily deploy your capsule on Fly.io by following these steps: You will first deploy the server, then then the ui.
- Install the Fly CLI: https://fly.io/docs/hands-on/install-flyctl/
- Create an account on fly.io: https://fly.io/docs/hands-on/create-account/
- Copy these two toml files into a directory.
app = 'ui'primary_region = 'cdg'
[build]
[http_service] internal_port = 80 force_https = true auto_stop_machines = 'stop' auto_start_machines = true min_machines_running = 0 processes = ['app']
[[vm]] memory = '1gb' cpu_kind = 'shared' cpus = 1
- Copy this fly.capsule.toml file into your server directory.
app = 'server'primary_region = 'cdg'
[build]
[http_service]internal_port = 3000force_https = trueauto_stop_machines = 'stop'auto_start_machines = truemin_machines_running = 0processes = ['app']
[[vm]]memory = '1gb'cpu_kind = 'shared'cpus = 1
[mounts]source = "fp_capsule_prod_volume"destination = "/app/_databases"
- Deploy your capsule with the command :
fly deploy