https://github.com/mileszim/fly-directus
Directus on Fly.io
https://github.com/mileszim/fly-directus
directus fly flyio template-project
Last synced: about 2 months ago
JSON representation
Directus on Fly.io
- Host: GitHub
- URL: https://github.com/mileszim/fly-directus
- Owner: mileszim
- Created: 2023-01-03T19:00:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-27T06:46:56.000Z (about 2 years ago)
- Last Synced: 2025-01-04T06:44:00.158Z (4 months ago)
- Topics: directus, fly, flyio, template-project
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 3
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# directus on fly.io
Run [Directus](https://directus.io/) on [fly.io](https://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:
```bash
$ fly secrets set \
ADMIN_EMAIL= \
ADMIN_PASSWORD=
```5. Create a fly volume in your preferred region:
```bash
$ fly volumes create directus -s 10 -r sjc
ID: vol_12345678asdf
Name: directus
App: your-app-name
Region: sjc
Zone: f46b
Size GB: 10Encrypted: true
Created at: 31 Dec 22 21:27 UTC
```6. Deploy
```bash
$ fly deploy
==> Verifying app config
--> Verified app config
==> Building image
...
```## How it works
This app runs Directus backed by sqlite using [Litefs](https://github.com/superfly/litefs) for global replication. The app is deployed as a Docker container.