Self-host PrivateBin
updated Sep 2026deployed by usprices checked · Jul 2026Install verified on Ubuntu 26.04 · Sep 2026 · how we test
We earn commissions when you shop through the links below. Full disclosure →
A minimalist pastebin where pastes are encrypted and decrypted in the browser with 256-bit AES, so the server has zero knowledge of the pasted data. Supports expiring and burn-after-reading pastes, discussions and optional file uploads.
Key facts
CategoryPastebin
LicenseZlib
StackPHP, JavaScript
Min RAM128 MB
Official imageyes
Measured idle RAM19 MB
Difficulty
What you need
- Any VPS with at least 128 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- Under an hour if you've used Docker before
Where to host itaffiliate disclosure
Hetzner Cloudrun it on
From $23.59/mo · 2 vCPU / 4 GB / 80 GB · EU + USKamaterafree trial
From $4/mo · 1 vCPU / 1 GB / 20 GB · US + EU + AsiaDigitalOceanalso works on
From $6/mo · 1 vCPU / 1 GB / 25 GB · US + EU + AsiaPaid link — we earn a commission if you shop through it.
Install
Run these commands on your server:
# PrivateBin — official Nginx + PHP-FPM image; the data dir must be owned by UID 65534 / GID 82
mkdir -p privatebin-data && sudo chown 65534:82 privatebin-data
docker run -d --name privatebin --restart always --read-only \
-p 8080:8080 -v "$PWD/privatebin-data:/srv/data" \
--tmpfs /tmp:nodev,noexec,mode=1777 --tmpfs /run:nodev,exec,mode=1777 \
privatebin/nginx-fpm-alpine:2.0.6
# open http://SERVER_IP:8080 (put HTTPS in front — the browser crypto needs a secure context off localhost)More self-hosted tools
Pastebin
Opengist
GoGit
easyRead guide →
Link in bio
LinkStack
PHPLaravel
easyRead guide →
Monitoring
Uptime Kuma
JavaScriptNode.js
easyRead guide →
Office suite
ONLYOFFICE Docs
JavaScriptC++
easyRead guide →