Skip to content
FerranicuPublic

About

Self-hosted PaaS: point it at a GitHub repo, get Docker or Kubernetes deploys with live logs

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

PrismaPod

Deploy apps from GitHub with one click.

PrismaPod is a self-hosted PaaS: connect a GitHub repository and it builds your app with Nixpacks, stores the image in a private registry, and deploys it to Docker or Kubernetes with automatic TLS — no configuration files in your repo required.

Quick Start

# 1. Clone and configure
git clone https://github.com/Ferranicu/PrismaPod.git
cd prismapod
cp .env.example .env
# Edit .env with your GitHub OAuth credentials

# 2. Install
./scripts/install.sh

# 3. Open http://prismapod.localhost

For Kubernetes deployment instead:

./scripts/install.sh --k8s

Features

Backend Core

  • GitHub OAuth integration and JWT session management
  • Application CRUD operations

Build System

  • Nixpacks builds with live log streaming (SSE)
  • Build queue with a background worker
  • Private Docker registry (registry:v2)
  • Git push-to-deploy via webhooks

Kubernetes Integration

  • Deployment/service/ingress management
  • Rolling updates for zero-downtime deploys
  • Persistent volume claims per app
  • Resource monitoring

Interfaces

  • React web frontend (Vite + Tailwind), embedded in the Go binary
  • Terminal UI (TUI) alternative

HTTPS & Production

  • Traefik TLS integration (Let's Encrypt)
  • Custom domain support per app

Why a Web Frontend?

The TUI works well, but it has to be started locally every time you use it. The web frontend is always available at http://prismapod.localhost, works from any browser, and is embedded in the Go binary — no separate Node.js server to run.


Self-Hosting Options

Docker Compose (Recommended)

Simple, includes everything:

./scripts/install.sh

This builds the frontend into backend/internal/api/frontend (where it is embedded by go:embed), then starts the backend, registry, and Traefik via docker-compose. To run Compose manually instead, build the frontend first (cd frontend && npm install && npm run build && rm -rf ../backend/internal/api/frontend && cp -r dist ../backend/internal/api/frontend) and then run docker-compose up -d.

Kubernetes

For production, see docs/PRODUCTION_DEPLOYMENT.md


Configuration (.env)

# GitHub OAuth (required)
GITHUB_CLIENT_ID=your_client_id
GITHUB_CLIENT_SECRET=your_client_secret
GITHUB_CALLBACK_URL=http://prismapod.localhost/api/github/callback

# Security (required)
JWT_SECRET=<random string, at least 32 characters>
ENCRYPTION_KEY=<random string, exactly 32 characters>
GITHUB_WEBHOOK_SECRET=<secret used to verify webhook signatures>

See .env.example for all supported variables, including registry, build, and Kubernetes settings.


API Endpoints

GET  /health                       - Health check
GET  /api/github/auth              - Get GitHub OAuth URL
GET  /api/github/callback          - OAuth callback
GET  /api/github/poll              - Poll auth status
GET  /api/user/me                  - Current user
GET  /api/applications             - List apps
POST /api/applications             - Create app
POST /api/applications/:id/builds  - Trigger deploy
GET  /api/builds/:id/logs/stream   - Stream build logs (SSE)

All endpoints except /health and the GitHub OAuth flow require a Bearer token in the Authorization header; the SSE log stream also accepts the token as a token query parameter (EventSource cannot set headers). Full reference: docs/API.md.

License

MIT

About

Self-hosted PaaS: point it at a GitHub repo, get Docker or Kubernetes deploys with live logs

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages