Files
metabuilder/pastebin/docs/docker-compose.README.md
johndoe6345789 73c8e3d4dc feat: Add snippet-pastebin application
Full-featured pastebin application with:
- Next.js frontend with TypeScript
- Express backend with SQLite/PostgreSQL
- Syntax highlighting for 100+ languages
- Code quality validation system
- Comprehensive accessibility (WCAG compliance)
- Docker deployment configuration
- Playwright E2E tests
- Jest unit tests

This provides a standalone web application that can be
integrated as a capability module in the Universal Platform.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 16:54:54 +00:00

1.5 KiB

Docker Compose Examples

This directory contains example Docker Compose configurations for different deployment scenarios.

Files

  • docker-compose.yml - Default full stack with auto-configured backend
  • docker-compose.backend-only.yml - Backend service only
  • docker-compose.dev.yml - Development setup with hot reload

Usage

Full Stack (Frontend + Backend)

docker-compose up -d

Access:

Backend Only

docker-compose -f docker-compose.backend-only.yml up -d

Access:

Then run frontend locally:

npm run dev

Configure frontend manually in Settings to use http://localhost:5000.

Development Mode

docker-compose -f docker-compose.dev.yml up -d

This runs:

  • Backend in Docker
  • Frontend expects you to run npm run dev locally with env var set

Environment Variables

All configurations support these environment variables:

Backend

  • DB_PATH - SQLite database path (default: /data/snippets.db)

Frontend

  • VITE_FLASK_BACKEND_URL - Flask backend URL (enables auto-configuration)

Persistence

All configurations use a Docker volume snippet-data for persistent storage.

To backup:

docker run --rm -v codesnippet_snippet-data:/data -v $(pwd):/backup alpine tar czf /backup/snippets-backup.tar.gz /data

To restore:

docker run --rm -v codesnippet_snippet-data:/data -v $(pwd):/backup alpine tar xzf /backup/snippets-backup.tar.gz -C /