Deploy & Host TrailBase | Railway

Deploy and Host TrailBase on Railway

TrailBase is an open, single-executable application server built on Rust and SQLite. It gives you type-safe REST and realtime APIs over your tables, authentication with OAuth providers, file uploads, a JavaScript and WebAssembly runtime and an admin UI. Client libraries exist for TypeScript, Dart, Rust, Python, C#, Swift, Kotlin and Go.

About Hosting TrailBase

This template deploys TrailBase v0.33.22 from the official image with its data directory on a Railway volume, so the database, uploads and migrations survive redeploys. On first start the default admin@localhost account is renamed to your admin email and given a generated password; on later starts the password is re-applied from the variable. The admin UI is at /_/admin. The server listens on IPv4 and IPv6, so other services can use the private URL. TrailBase is very light and fits the Hobby plan. Back up the volume regularly, since it holds the SQLite database and uploaded files.

Common Use Cases

Dependencies for TrailBase Hosting

Deployment Dependencies

Implementation Details

Service Image Networking Storage
trailbase trailbase/trailbase:0.33.22 public domain on 4000; private IPv4/IPv6 volume at /app/traildepot
curl -X POST "https:///api/auth/v1/login" -H "Content-Type: application/json" \
  -d '{"email": "admin@example.com", "password": ""}'
Variable Default Purpose
TRAILBASE_ADMIN_EMAIL / TRAILBASE_ADMIN_PASSWORD admin@example.com / generated Admin login
PUBLIC_URL https:// Public URL for auth redirects

Notes:

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the TrailBase project or its maintainers.

Why Deploy TrailBase on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying TrailBase on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.