Back to Apps
PrivateBin

Deploy PrivateBin on Your Own Server

A minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bits AES.

πŸ“¦ Other

Want to deploy PrivateBin on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is PrivateBin?

PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted and decrypted in the browser using 256bit AES in Galois Counter mode. More details: https://github.com/PrivateBin/PrivateBin

Self-Host PrivateBin

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

General
3

Deploy

Copy the configuration and run it on your server.

services:
  privatebin:
    image: privatebin/nginx-fpm-alpine:1.5.1
    environment:
      PHP_TZ: America/New_York
      TZ: America/New_York
    volumes:
      - privatebin-data:/srv/data
      - privatebin-cfg:/srv/cfg
volumes:
  privatebin-data: {}
  privatebin-cfg: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:8080

Why Self-Host PrivateBin?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

privatebin/nginx-fpm-alpine:${version}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"