Skip to content

pastebox

A lightweight, self-hostable alternative to Pastebin for sharing text and files on your local network. Perfect for quick file transfers and text sharing between devices without leaving your network.


Terminal window
mkdir -p {{DOCKER_PATH_VAR}}/pastebox && cd {{DOCKER_PATH_VAR}}/pastebox
Terminal window
nano compose.yml
compose.yml
services:
pastebox:
image: huffmanks/pastebox
container_name: pastebox
ports:
- "3006:3000"
volumes:
- uploads:/app/uploads
- data:/app/data
environment:
NODE_ENV: production
DATABASE_URL: ${DATABASE_URL}
NEXT_PUBLIC_APP_URL: ${NEXT_PUBLIC_APP_URL}
restart: unless-stopped
volumes:
uploads:
data:
Terminal window
nano .env
.env
NODE_ENV=production
DATABASE_URL=file:./data/prod.db
NEXT_PUBLIC_APP_URL=http://localhost:3006
Terminal window
docker compose up -d

http://localhost:3006 or http://{{SERVER_IP_VAR}}:3006