dpaste

Self-Hosted

Open-source self-hosted pastebin with syntax highlighting

Visit Website

Overview

dpaste is a lightweight, open-source pastebin tool for sharing code snippets and text. It supports syntax highlighting for 100+ programming languages, custom paste expiration (temporary or permanent), raw paste views, and line numbering. Easy to self-host via Docker or Python (Flask) setups, it lets teams/individuals control their data instead of relying on public services. Additional features include forking existing pastes and simple sharing links, making it ideal for private or internal use cases.

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:
  dpaste:
    image: <OFFICIAL_IMAGE_NAME>:latest
    container_name: dpaste
    ports:
      - "8080:<APP_INTERNAL_PORT>"
    volumes:
      - ./data:/app/data
    restart: unless-stopped

Key Features

  • Syntax highlighting for 100+ programming languages
  • Custom paste expiration settings
  • Dockerized deployment for quick setup

Frequently Asked Questions

? Is dpaste hard to install?

No—dpaste offers Docker images for one-click deployment, or you can set it up via Python (Flask) with minimal dependencies. Most users get it running in minutes using Docker Compose.

? Is it a good alternative to Pastebin.com?

Yes—dpaste provides core pastebin features (syntax highlighting, sharing links) but with self-hosting, so you avoid public data exposure and retain full control over your pastes.

? Is it completely free?

Yes—dpaste is open-source under the MIT License, so it’s free to use, modify, and self-host without any hidden costs or subscriptions.

Top Alternatives

Pastebin.com Search Google
GitHub Gist Search Google

People Also Ask about dpaste

dpaste vs Pastebin.comdpaste vs GitHub Gist dpaste 2025 review dpaste docker-compose example

Tool Info

Pricing Free/Open Source
Category Pastebins
Platform Self-Hosted

Pros

  • Privacy-focused (self-hosted data control)
  • Lightweight and low-resource usage

Cons

  • Limited advanced features vs enterprise tools
  • Requires basic server knowledge for setup

More Pastebins Tools