Deploy PocketBase
Open source backend in one file: SQLite database, auth, files, admin UI
PocketBase
Just deployed
/pb_data
Deploy and Host PocketBase on Railway
PocketBase is an open source backend in a single binary: an embedded SQLite database with realtime subscriptions, user authentication, file storage and an admin dashboard.
About Hosting PocketBase
This template runs the community ghcr.io/muchobien/pocketbase:latest image (PocketBase has no official image) with a volume at /pb_data, so the database and uploads survive redeploys. Set PB_ADMIN_EMAIL to your email when deploying: the superuser is created on start with the generated PB_ADMIN_PASSWORD (see the service variables). Then sign in at /_/.
Common Use Cases
- Backend for web and mobile apps without writing a server
- Prototypes and small production apps with auth and file uploads
- Realtime data and REST API on one URL
Dependencies for PocketBase Hosting
- One service with a volume; nothing else
Deployment Dependencies
Why Deploy PocketBase on Railway?
Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain.
Template Content
PocketBase
ghcr.io/muchobien/pocketbase:latestPB_ADMIN_EMAIL
