This example deploys a self-hosted version of Directus.
Internally it uses an external PostgreSQL database (Supabase) to store the data and S3 to store files.
- Directus
- Postgres
- Supabase
- S3
- Slugs (via inclusion of https://github.com/dimitrov-adrian/directus-extension-wpslug-interface)
- Click the Railway button π
- Add the environment variables
- If you do not add the S3 related environment variables, your images/files will not be persisted between deploys.
- After your app is deployed, visit the
/admin
endpoint to login using the initial admin user you entered during config. - Railway's filesystem is ephemeral which is why any changes to the filesystem are not persisted between deploys. This is why, this example uses S3 for storage.
Originally forked from https://github.com/azrikahar/directus-railway-starter with Supabase, S3 and Slugs support built in off the bat.