Skip to content

mileszim/fly-directus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

directus on fly.io

Run Directus on fly.io.

Getting started

  1. Run fly launch to create a new app.

  2. Clone this repository.

  3. Update the fly.toml file:

    1. Replace FLY_APP_NAME with your app name.
  4. Set ADMIN_EMAIL and ADMIN_PASSWORD as secrets:

    $ fly secrets set \
      ADMIN_EMAIL=<your email> \
      ADMIN_PASSWORD=<your password>
  5. 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
  6. Deploy

    $ fly deploy
    
    ==> Verifying app config
    --> Verified app config
    ==> Building image
    ...

How it works

This app runs Directus backed by sqlite using Litefs for global replication. The app is deployed as a Docker container.