PrivateBin is a minimalist pastebin where the server has zero knowledge of stored data.
PrivateBin Docker Compose example
Self-host PrivateBin on your own server, homelab, or VPS starting from this Docker Compose example.
It runs PrivateBin in Docker containers using the official privatebin/nginx-fpm-alpine:latest image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
privatebin:
image: privatebin/nginx-fpm-alpine:latest
restart: unless-stopped
read_only: true
volumes:
- data:/srv/data
environment:
TZ: "UTC"
PHP_TZ: "UTC"
tmpfs:
- /tmp
- /var/tmp
volumes:
data: Prefer a managed setup? WinterFlow installs, configures, and updates PrivateBin for you using this same Docker Compose configuration.