Share and manage your code snippets with complete privacy and control. This open-source alternative to popular pastebin and gist services allows you to host your own text sharing platform directly on your infrastructure. Whether you are collaborating with a team or saving useful scripts for later, you maintain full ownership of your data.\n\nKey benefits include:\n* Self-hosted privacy: Keep your sensitive code and text snippets on your own servers.\n* Open-source transparency: Inspect, modify, and contribute to the codebase without vendor lock-in.\n* Easy sharing: Generate links quickly to share logs, configurations, or code blocks with colleagues.\n* Organized snippets: Manage your saved texts efficiently, making it simple to find what you need when you need it.\n\nTake control of your shared text and code today with a lightweight, reliable hosting solution.
services:
pastefy:
image: interaapps/pastefy:latest
restart: unless-stopped
ports:
- "8080:8080"
environment:
PASTEFY_MONGODB_CONNECTION_STRING: mongodb://${MONGO_USER}:${MONGO_PASSWORD}@mongo:27017/pastefy?authSource=admin
PASTEFY_REDIS_HOST: redis
PASTEFY_REDIS_PORT: 6379
depends_on:
- mongo
- redis
mongo:
image: mongo:latest
restart: unless-stopped
environment:
MONGO_INITDB_ROOT_USERNAME: ${MONGO_USER}
MONGO_INITDB_ROOT_PASSWORD: ${MONGO_PASSWORD}
volumes:
- ./data/mongo:/data/db
redis:
image: redis:alpine
restart: unless-stoppedMONGO_USER=pastefy_admin
MONGO_PASSWORD=your_secure_password_hereAuto-fetched about 21 hours ago
Auto-fetched about 21 hours ago