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
Section titled “References”Make directory
Section titled “Make directory”mkdir -p {{DOCKER_PATH_VAR}}/pastebox && cd {{DOCKER_PATH_VAR}}/pasteboxcompose.yml
Section titled “compose.yml”nano compose.ymlservices: 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:nano .envNODE_ENV=productionDATABASE_URL=file:./data/prod.dbNEXT_PUBLIC_APP_URL=http://localhost:3006Start container
Section titled “Start container”docker compose up -d