TinyBin is a modern, minimal, and ad-free pastebin for your notes and code.
Built with Node.js, Express, and MySQL.
Easily self-host with Docker!
- 📝 Create and share notes with unique URLs
- ⏳ Notes auto-expire after 24 hours or more
- ⚡ Fast and simple UI
- 🐳 Easy Docker Compose setup
curl -O -L https://github.com/FoxyIsCoding/TinyBin/raw/refs/heads/main/docker-compose.yml
docker-compose up
- This will:
- Spin up a MySQL 8 database (with user/password:
pastefox
) - Build and run the PasteFox app (Node.js)
- Automatically run DB migrations on startup
- Spin up a MySQL 8 database (with user/password:
Open http://localhost:3000 in your browser.
- MySQL runs privately on port
3306
, with data persisted in a Docker volume. - PasteFox App runs publically on port
3000
. - Environment variables are set automatically for DB connection.
You can customize DB credentials in docker-compose.yml
if needed.
PasteFox uses these env vars (set automatically in Docker):
DB_HOST
,DB_PORT
,DB_USER
,DB_PASSWORD
,DB_NAME
WEB_PORT
(default: 3000)
On every start, PasteFox will auto-create the notes
table and indexes if they don't exist.
No manual SQL needed!
If you like this project, consider supporting me on Ko-fi!
Your support keeps PasteFox ad-free and open source.
Apache License, Version 2.0
Huge thank you to Loudbook for design inspiration and Docker help. Huge thank you to Error for writing out a better backend structure and consulting on how to migrate to a more sophisticated stack. Couldnt have done it without him.