---
title: "Deploy PocketBase"
description: "Open source backend in one file: SQLite database, auth, files, admin UI"
category: "Other"
url: https://railway.com/deploy/pocketbase-8
---

# Deploy PocketBase

Open source backend in one file: SQLite database, auth, files, admin UI

**[Deploy PocketBase on Railway](https://railway.com/template/pocketbase-8)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/pocketbase-8/manifest.json

- **Creator:** zer0person's Projects
- **Category:** Other
- **Total deploys:** 1

## Template content

### PocketBase

- **Image:** ghcr.io/muchobien/pocketbase:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host PocketBase on Railway

[PocketBase](https://github.com/pocketbase/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

- [PocketBase on GitHub](https://github.com/pocketbase/pocketbase)
- [Docker image](https://github.com/muchobien/pocketbase-docker/pkgs/container/pocketbase)

## Why Deploy PocketBase on Railway?

Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/pocketbase-8
