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.
References
Make directory
mkdir -p {{DOCKER_PATH_VAR}}/pastebox && cd {{DOCKER_PATH_VAR}}/pasteboxdocker-compose.yml
nano docker-compose.ymlservices: pastebox: image: huffmanks/pastebox container_name: pastebox ports: - "3000: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:.env
nano .envNODE_ENV=productionDATABASE_URL=file:./data/prod.dbNEXT_PUBLIC_APP_URL=http://localhost:3000Start container
docker compose up -d