Quick Start
Fastest way to run Crikket, including prerequisites and deployment options.
Prerequisites
- Docker Engine 24+ and Docker Compose v2
- 2 vCPU / 4 GB RAM / 40 GB SSD recommended baseline
- Linux VPS (Ubuntu 22.04+ recommended) or local machine with Docker Desktop
- Domain + reverse proxy for production (
80/443)
Security baseline:
- Expose only
80/443publicly - Keep
3000,3001, and5432private - Use a strong
BETTER_AUTH_SECRET
Clone Repository
git clone https://github.com/redpangilinan/crikket
cd crikketCreate Env Files
cp .env.example .env
cp apps/server/.env.example apps/server/.env
cp apps/web/.env.example apps/web/.envConfigure App Env
Root .env is Docker-only (ports and bundled Postgres config).
App settings belong in:
apps/server/.envapps/web/.env
For production, set these explicitly:
DATABASE_URL
BETTER_AUTH_SECRET (32+ characters)
NEXT_PUBLIC_APP_URL
NEXT_PUBLIC_SERVER_URL
BETTER_AUTH_URL
CORS_ORIGINS
GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET
ENABLE_PAYMENTS (false)Optional but recommended for security:
CAPTURE_SUBMIT_TOKEN_SECRET
UPSTASH_REDIS_REST_URL
UPSTASH_REDIS_REST_TOKEN
TURNSTILE_SITE_KEY
TURNSTILE_SECRET_KEYStart Stack
Prebuilt images (default):
docker compose up -dLocal source build:
docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --buildValidate Deployment
docker compose ps
docker compose logs -f server
docker compose logs -f webSchema migrations run automatically through the migrate service before server starts.
Next: Production Setup.