---
title: "Deploy Pastefy"
description: "Self-hosted pastebin for sharing code, text, and links."
category: "Storage"
url: https://railway.com/deploy/pastefy
---

# Deploy Pastefy

Self-hosted pastebin for sharing code, text, and links.

**[Deploy Pastefy on Railway](https://railway.com/template/pastefy)**

- **Creator:** Agaz Self-Host
- **Category:** Storage

## Template content

### MariaDB

- **Image:** mariadb:11.4.5@sha256:5dfb3093333fa0ea53194ddef0a2bfa21d3b1e1353bd228b22610cd6fc0c04da

### Pastefy

- **Image:** interaapps/pastefy:7.1.6@sha256:353ce246ccf24ab1dec42e3c387744b47925065c207699f0bf1ce8e560619ca9
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host Pastefy on Railway

Pastefy is an open-source pastebin for storing and sharing text, code snippets, and links through a simple web interface. It is suited to teams and individuals that want a focused, self-hosted place for temporary or persistent paste collections.

## About Hosting Pastefy on Railway

This template runs the Pastefy application with MariaDB as its persistent data store. Keep database traffic on Railway private networking, expose the application service for browser access, and attach durable storage to MariaDB before using it for important pastes. Database passwords are generated at deployment time or represented through service references, so the template does not copy a source credential. Review the upstream project documentation for application-specific configuration and upgrade guidance.

## Common Use Cases

* Share code snippets, configuration examples, and troubleshooting notes.
* Maintain a private pastebin for a small team or homelab.
* Provide a lightweight web endpoint for reusable text and links.

## Dependencies for Pastefy Hosting

* MariaDB for paste content and application metadata.
* A persistent volume for the MariaDB data directory.

### Deployment Dependencies

* [Pastefy source repository](https://github.com/interaapps/pastefy)
* [Pastefy project website](https://pastefy.app)

## Why Deploy Pastefy 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 Pastefy 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

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/pastefy
