Skip to main content
wit includes a complete self-hosted platform that provides Git hosting, pull requests, issues, and a web UI. Start everything with a single command.

Quick Start

That’s it. wit handles database setup, migrations, and all services.

wit up

Start the wit platform with all services.

What wit up Does

  1. Starts PostgreSQL via Docker (or connects to external DB)
  2. Runs database migrations automatically
  3. Starts the API server for Git operations and tRPC API
  4. Starts the web UI (Vite dev server)

Examples

Output

When successfully started:

wit down

Stop the wit platform.

Examples


wit platform-status

Check the status of running services.
Shows which services are running and their health.

Data Directory

All platform data is stored in ~/.wit by default:

Custom Data Directory

Use --data-dir to specify a different location:

Requirements

Docker

wit uses Docker to run PostgreSQL. Install Docker from docker.com. Check if Docker is installed:

External Database (Optional)

If you prefer to use an existing PostgreSQL database:
The database must be PostgreSQL 14 or later.

Configuration

Environment Variables

Using with External Services

To integrate with external services, set the appropriate environment variables before running wit up:

Production Deployment

For production deployments, consider:

Using Docker Compose

Create a docker-compose.yml:
Run with:

Nginx Reverse Proxy

For production with HTTPS:

Troubleshooting

Port Already in Use

Either stop the existing service or use a different port:

Docker Not Found

Install Docker or use an external database:

Database Connection Failed

Check the logs:
Verify PostgreSQL is running:

Checking Logs

Service logs are stored in ~/.wit/logs/:

Cleaning Up

To completely reset the platform:
This removes all data including repositories and database content.