Directus on Railway
A headless CMS and data platform that turns a SQL database into REST and GraphQL APIs, on Railway.
Directus turns a SQL database into REST and GraphQL APIs and adds a visual Studio for managing content, files, users and automations. It works with new or existing schemas, and is often compared with headless CMSs such as Strapi and Contentful.
Developers use it as the content backend for sites built with Next.js, Nuxt, Astro or SvelteKit, as an admin panel over a Postgres schema, and as an internal data tool with dashboards (Insights), automations (Flows) and an MCP server for AI agents.
Directus is source-available under the Monospace Sustainable Core License 1.0, not an OSI open-source licence. Each version becomes GPL-3.0 four years after release.
What Directus can do
- REST and GraphQL APIs generated from your SQL schema
- Visual Studio for content, files and users
- Roles and permissions
- Flows for automations and Insights dashboards
- File storage with image transformations
- Realtime WebSockets and an MCP server
What people use it for
- Headless CMS for websites and mobile apps
- Back office and admin panel over a Postgres database
- REST and GraphQL backend with file storage
- Internal data tools with dashboards and automations
Videos
Running Directus on Railway
The Railway template deploys Directus 12 with PostgreSQL (PostGIS), Redis and a Railway Bucket for uploaded files and extensions, pinned to a specific version. An administrator is created with a generated password during first start, before the public port opens. The template documents measured idle usage of roughly 260 MiB for Directus, 180 MiB for Postgres and 25 MiB for Redis, plus bucket storage; cost follows the CPU and memory the services use.
Directus templates on Railway
Tracklayer templates are listed first. Other Directus templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about Directus
Is Directus open source?
It is source-available, not OSI open source. Without a licence key it runs on the free Core tier, which has limits on seats, collections and flows. Organisations under USD 5M annual revenue and 50 employees can request a free Open Innovation Grant key; larger organisations that need more than Core need a commercial licence. Offering Directus itself as a competing service is not permitted. This is not legal advice.
How do I log in?
Open /admin on your domain and sign in with ADMIN_EMAIL and the generated ADMIN_PASSWORD from the Directus service's Variables tab. There is no shared default password.
Where are uploaded files stored?
In a Railway Bucket, so the Directus service keeps no local file storage. Postgres holds content, users and settings.
Why do password reset e-mails not arrive?
You need a mail transport. Set EMAIL_FROM and EMAIL_TRANSPORT with its settings. Railway allows outbound SMTP only on Pro plans, so on other plans use Mailgun or SendGrid.
How do I use a custom domain?
Add the domain to the service and set PUBLIC_URL to https://your-domain.
Guides
Similar apps
Tracklayer maintains the templates marked as such; Directus is a trademark of its owners and this site is not affiliated with them.