DEV Community

Cover image for Shipped a Grist one-click Railway template — the SQLite volume was the gotcha
InApp
InApp

Posted on Originally published at imapp.blogspot.com

Shipped a Grist one-click Railway template — the SQLite volume was the gotcha

Grist is the self-hosted Airtable I keep recommending to agents that need a real database with a spreadsheet face, but every time I spun one up on Railway the data vanished on the first redeploy. The app stores everything in a SQLite file inside the container, which is ephemeral by default. So I packaged the fix into a template: https://github.com/INAPP-Mobile/grist

The concrete detail that matters is the volume mount. The template provisions a persistent /persist volume and points Grist's GRIST_DATA_DIR there, so the SQLite file — and every uploaded attachment — survives restarts, rebuilds, and Railway's own housekeeping. Without that one line in the compose file, your "database" is a disposable scratchpad.

What it costs the operator is roughly $5–20/month on Railway's hobby tier, depending on how much you hammer it, plus the occasional chore of bumping the Grist image tag when a new release drops. There's no free lunch on managed hosting — the template removes the setup pain, not the bill. But for agents that want their own relational data without babysitting a VPS, it's a fair trade.

Top comments (0)