-
Run
fly launch
to create a new app. -
Clone this repository.
-
Update the
fly.toml
file:- Replace
FLY_APP_NAME
with your app name.
- Replace
-
Set
ADMIN_EMAIL
andADMIN_PASSWORD
as secrets:$ fly secrets set \ ADMIN_EMAIL=<your email> \ ADMIN_PASSWORD=<your password>
-
Create a fly volume in your preferred region:
$ fly volumes create directus -s 10 -r sjc ID: vol_12345678asdf Name: directus App: your-app-name Region: sjc Zone: f46b Size GB: 10 Encrypted: true Created at: 31 Dec 22 21:27 UTC
-
Deploy
$ fly deploy ==> Verifying app config --> Verified app config ==> Building image ...
This app runs Directus backed by sqlite using Litefs for global replication. The app is deployed as a Docker container.