---
title: "Deploy PocketBase + Litestream + Hooks"
description: "PocketBase with Litestream backups, easy hooks and api rules management."
category: "Other"
url: https://railway.com/deploy/pocketbase-litestream-hooks
---

# Deploy PocketBase + Litestream + Hooks

PocketBase with Litestream backups, easy hooks and api rules management.

**[Deploy PocketBase + Litestream + Hooks on Railway](https://railway.com/template/pocketbase-litestream-hooks)**

- **Creator:** orenaksakal
- **Category:** Other
- **Total deploys:** 6

## Template content

### Pocketbase + Litestream + Hooks and Api Rules https://pocketbase.io/images/logo.svg

- **Source:** https://github.com/orenaksakal/pocketbase-litestream-railway
- **Health check:** /api/health
- **Public domain:** Yes

## Buckets

- **backups-bucket**

## Documentation

# Deploy and Host Pocketbase + Litestream + Hooks on Railway

Production ready PocketBase template with 

- litestream automated streaming backups (PITR)
- easy to manage hooks dashboard plugin
- easy to manage pb api rules dashboard plugin
- improved security with defined origins support only

Allows you to deploy any pocketbase version, any s3 bucket for backups and easily manage your hooks within railway as well as see your api rules through plugins.

## About Hosting Pocketbase + Litestream + Hooks

After deploying the template create your first admin user and visit

1) PB Hooks Dashboard: https://yoursite.com/hooks-dash
2) PB Api Rules Dashboard: https://yoursite.com/rules-overview.html

Both are piggy-backing your admin token so they are safe to use!

## Common Use Cases

- Production ready baas
- PITR & automated streaming sqlite backups via litestream
- Hooks management within dashboard
- Easier api rules visibility within dashboard

## Dependencies for Pocketbase + Litestream + Hooks Hosting

- PocketBase - version config via env variables
- Litestream
- pb-hooks plugin
- pb-rules plugin

### Deployment Dependencies

Pocketbase: https://pocketbase.io
Litestream: https://litestream.io/
Hooks Dashboard: https://github.com/deselected/pb-hooks-dash
Rules Dashboard: https://github.com/deselected/pb-rules-overview/tree/main

## Why Deploy Pocketbase + Litestream + Hooks 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 Pocketbase + Litestream + Hooks 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.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] 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-litestream-hooks
