Use this path if you want to install your prediction market manually on your own infrastructure, not through the guided
/launch flow.Prepare the repository
Use your copy ofkuest/prediction-market. Run the deployment commands in these guides from that repository’s root, where infra/, package.json, and .env.example are located.
CHAIN_ID for the intended network.
For commands run outside a container, install the Bun version declared in package.json under engines.bun (currently 1.4.4), then install dependencies with bun install --frozen-lockfile. The supplied Docker image already includes Bun. Database migrations require a direct or session-pooler connection; use POSTGRES_URL_NON_POOLING when the runtime URL uses transaction pooling.
Choose a deployment target
The detailed guides retain the platform-specific commands and deployment files:
Vercel + Supabase
Vercel + Supabase
Fastest manual setup if you still want hosted services and low ops work.Guide: Vercel + Supabase
Docker Compose
Docker Compose
Good for single-server installs where simplicity matters more than scaling.Guide: Docker Compose
Cloud Run
Cloud Run
Managed runtime on GCP with less server maintenance.Guide: Cloud Run
Railway
Railway
Managed PaaS with GitHub-based deploys and minimal platform setup.Guide: Railway
Fly.io
Fly.io
Useful if you want app hosting on Fly and already know that platform.Guide: Fly.io
DigitalOcean App Platform
DigitalOcean App Platform
Managed PaaS on DigitalOcean with less setup than raw VPS hosting.Guide: DigitalOcean
VPS
VPS
Best for teams that want direct control over a Linux server.Guide: VPS
Kubernetes
Kubernetes
Best when you already run a cluster and want to manage rollout and scaling there.Guide: Kubernetes
Terraform stacks
Terraform stacks
Useful when your team provisions infrastructure through code.Guide: Terraform
Choose one storage profile
- Supabase Storage
- S3-compatible
Use
POSTGRES_URL for the runtime database and configure SUPABASE_URL with SUPABASE_SECRET_KEY for uploaded assets.If the PostgreSQL database also provides pg_cron and pg_net, bun run db:push configures the supplied sync jobs there.Production baseline
Secrets
Keep Kuest credentials, database URLs, storage keys, signer keys, and auth secrets server-side.
Canonical URL
Set
SITE_URL to the final HTTPS origin and update it when the public domain changes.Database migration
Run
bun run db:push before sending production traffic to a new release.Health and sync
Verify that the application responds at
/ and confirm scheduled sync jobs are succeeding.