Spacebin

Share notes, code snippets, and text documents easily. Built with Go for maximum reliability, this lightweight server ensures your data is always accessible.

Share text, code snippets, and important documents with a highly reliable pastebin server designed for speed and efficiency. Built entirely in Go, this platform provides a robust foundation for hosting and distributing plain text content without unnecessary bloat. Whether you are collaborating on programming projects, saving quick notes, or distributing configuration files, you get a fast and dependable experience.

Key benefits include:

  • High Reliability: Engineered in Go to handle requests quickly and maintain excellent uptime for all your shared documents.
  • Versatile Sharing: Easily host code snippets, personal notes, or any text-based document with minimal friction.
  • Ad-Free Experience: Enjoy a clean, distraction-free interface that focuses entirely on your content.
  • Lightweight Architecture: Consumes minimal resources while delivering maximum performance for reading and writing text.

Perfect for developers and teams who need a straightforward way to distribute text online.

Directory Structure

spacebin
data
postgres
.env
docker-compose.yml

docker-compose.yml

services:
  spacebin:
    image: ghcr.io/lukewhrit/spacebin:latest
    container_name: spacebin
    restart: unless-stopped
    ports:
      - "8080:8080"
    environment:
      SPACEBIN_SERVER_PORT: 8080
      SPACEBIN_SERVER_LISTEN_ADDR: "0.0.0.0"
      SPACEBIN_STORAGE_TYPE: "postgres"
      SPACEBIN_STORAGE_CONNECTION_STRING: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}?sslmode=disable"
    depends_on:
      - db

  db:
    image: postgres:14-alpine
    container_name: spacebin_db
    restart: unless-stopped
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: ${POSTGRES_DB}
    volumes:
      - ./data/postgres:/var/lib/postgresql/data

.env

POSTGRES_USER=spacebin
POSTGRES_PASSWORD=your_secure_password
POSTGRES_DB=spacebin
Categories:

Share:

Ad
Favicon

 

  
 

Similar to Spacebin

Favicon

 

  
  
Favicon

 

  
  
Favicon