Paaster
Paaster is a secure by default end-to-end encrypted pastebin built with the objective of simplicity.
Directory Structure
- .env
- docker-compose.yml
docker-compose.yml
# Please read.
# https://github.com/WardPearce/paaster#production-with-docker
# Need help? Open a Issue.
# https://github.com/WardPearce/paaster/issues/new
version: '3'
services:
paaster_backend:
container_name: paaster_backend
image: wardpearce/paaster-backend:latest
restart: unless-stopped
ports:
- "8888:80"
environment:
# Max paste size in bytes.
paaster_max_paste_size: 1049000
paaster_max_iv_size: 42
paaster_open_api: '{"title": "paaster.io", "version": "2.0.0"}'
paaster_mongo: '{"host": "paaster_mongodb", "port": 27017, "collection": "paasterv2"}'
# paaster_s3.download_url should be the URL to access a given file.
# This should be a public bucket, without allowing directory listing.
paaster_s3: '{"endpoint_url": "","secret_access_key": "","access_key_id": "","region_name": "","bucket": "","folder": "pastes","download_url": ""}'
# Proxied URLs, NO TRAILING SLASH!
# paaster_proxy_urls.frontend should be the address for "paaster_frontend". E.g. for paaster.io this is "https://paaster.io"
# paaster_proxy_urls.backend should be the address for "paaster_backend". E.g. for paaster.io this is "https://api.paaster.io"
paaster_proxy_urls: '{"frontend": "http://localhost:8889", "backend": "http://localhost:8888"}'
depends_on:
- paaster_mongodb
networks:
- paaster_network
# If using Vercel, delete this section.
paaster_frontend:
container_name: paaster_frontend
image: wardpearce/paaster-frontend:latest
restart: unless-stopped
environment:
# Name what appears on the website.
# name should be lower case due to font.
VITE_NAME: "paaster.io"
# Proxied backend URL, NO TRAILING SLASH!
# Should be the proxied address for "paaster_backend". E.g. for paaster.io this is "https://api.paaster.io"
VITE_API_URL: "http://localhost:8888"
ports:
- "8889:80"
paaster_mongodb:
image: mongo
container_name: paaster_mongodb
restart: unless-stopped
environment:
MONGODB_DATA_DIR: /data/db
MONDODB_LOG_DIR: /dev/null
volumes:
- ./paaster_data:/data/db
networks:
- paaster_network
networks:
paaster_network:
driver: bridgeResources
Website: https://paaster.io/
GitHub: https://github.com/WardPearce/paaster
Docker Hub: https://hub.docker.com/r/wardpearce/paaster-frontend
Configuration: https://github.com/WardPearce/paaster#setup