Pastefy

Self-Hosted

Open-source, self-hosted pastebin with syntax highlighting

Visit Website

Overview

Pastefy is a lightweight, self-hosted pastebin solution for secure, private sharing of code snippets and text. It supports syntax highlighting for over 100 languages, custom paste expiration times, and password protection for sensitive content. Deployable via Docker (simplest method) or manual setup with PHP 8.0+ and MySQL/MariaDB. It offers a clean UI, API access for automation, and collection organization. Ideal for developers/teams wanting full control over shared text data without third-party reliance.

Self-Hosting Resources

Below is a reference structure for docker-compose.yml. ⚠️ Do NOT run blindly. Replace placeholders with official values.

docker-compose.template.yml TEMPLATE

version: '3'
services:
  pastefy:
    image: <OFFICIAL_IMAGE_NAME>:latest
    container_name: pastefy
    ports:
      - "8080:<APP_INTERNAL_PORT>"
    volumes:
      - ./data:/app/data
    restart: unless-stopped

Key Features

  • Syntax highlighting for 100+ programming languages
  • Password protection & custom expiration times
  • Docker deployment support
  • API access for automation

Frequently Asked Questions

? Is Pastefy hard to install?

Pastefy is easy to install via Docker—pull the official image and configure database env vars. Manual setup needs PHP 8.0+, MySQL/MariaDB, and web server config (Nginx/Apache), manageable for users with basic server experience.

? Is it a good alternative to Pastebin.com?

Yes—Pastefy offers core pastebin features (syntax highlighting, pastes) with self-hosted privacy, no ads, and team-focused tools. It lacks Pastebin’s public discovery but excels at private, controlled sharing.

? Is it completely free?

Yes—Pastefy is open-source under the MIT License. You can use, modify, and self-host it without any cost or hidden fees.

Top Alternatives

Pastebin.com Search Google
GitHub Gist Search Google

People Also Ask about Pastefy

Pastefy vs Pastebin.comPastefy vs GitHub Gist Pastefy 2025 review Pastefy docker-compose example

Tool Info

Pricing Open Source
Category Pastebins
Platform Self-Hosted

Pros

  • Privacy-focused (self-hosted control)
  • No subscription fees
  • Lightweight & fast performance
  • Organize pastes into collections

Cons

  • Requires basic server setup knowledge
  • No built-in cross-server cloud sync
  • Limited advanced features vs enterprise tools

More Pastebins Tools