Installing VerifyWise
Step-by-step guide to deploy VerifyWise in your environment.
Prerequisites
VerifyWise runs on your infrastructure. Before you start, make sure you have these in place:
Server
- •Linux server (Ubuntu 22.04 LTS recommended)
- •4 GB RAM minimum (8 GB recommended), 2 CPU cores
- •20 GB free disk space
Software
- •Docker and Docker Compose (production)
- •Node.js 22 and npm (development only)
- •Git
Networking
- •Port 3000 (backend API)
- •Port 8080 (frontend, production) or 5173 (frontend, development)
- •Port 5432 for PostgreSQL and 6379 for Redis (can be internal-only)
Pick a deployment method
Production (Docker Compose)
One install script, everything containerized. Use this unless you plan to modify the source code.
Development (npm)
Frontend and backend run separately with hot reload. Use this if you want to contribute or customize.
Production setup
1. Download the install files
mkdir verifywise && cd verifywise
curl -O https://raw.githubusercontent.com/verifywise-ai/verifywise/develop/install.sh2. Edit environment variables
.env.prod is not published in the repository, so create it yourself in the same folder as install.sh. The installer checks every secret below and refuses to start any container while one is empty.
# Database
DB_USER=verifywise
DB_PASSWORD=your-secure-password
DB_NAME=verifywise
DB_PORT=5432
# Ports published on the host
BACKEND_PORT=3000
FRONTEND_PORT=8080
# Address people use to open VerifyWise (used in email links)
FRONTEND_URL=https://verifywise.example.com
# Super admin account (password: at least 8 characters)
SUPERADMIN_EMAIL=admin@example.com
SUPERADMIN_PASSWORD=your-admin-password
# Secrets: generate each with openssl rand -base64 32
JWT_SECRET=
REFRESH_TOKEN_SECRET=
# Required: the backend refuses to start in production without it
ENCRYPTION_KEY=
ENCRYPTION_PASSWORD=
AI_GATEWAY_INTERNAL_KEY=
EVAL_SERVER_INTERNAL_KEY=
# Encryption algorithm
ENCRYPTION_ALGORITHM=aes-256-cbcSet FRONTEND_URL to the address people use to open VerifyWise, for example https://verifywise.example.com. Invitation and notification emails link to it, and without it they point to http://localhost:5173. You don't need BACKEND_URL: Compose connects the services to each other internally.
3. Run the installer
chmod +x ./install.sh
./install.shThe script pulls the Docker images, starts all services and then follows their logs. Press Ctrl+C to stop following the logs; the services keep running. Then open your FRONTEND_URL in a browser.
Development setup
This runs frontend and backend separately with hot reload. You'll need 2 terminal windows. npm run watch starts the backend and the BullMQ worker together.
1. Clone and install
git clone https://github.com/bluewave-labs/verifywise.git
cd verifywise
cd Clients && npm install
cd ../Servers && npm install2. Start PostgreSQL and Redis
The easiest way is Docker containers:
docker run -d --name mypostgres -p 5432:5432 \
-e POSTGRES_PASSWORD=your_password postgres
docker run -d --name myredis -p 6379:6379 redis
docker exec -it mypostgres psql -U postgres -c "CREATE DATABASE verifywise;"3. Configure and start
# Copy the example environment file
cp Servers/.env.example Servers/.env
# Terminal 1: backend with auto-restart
cd Servers && npm run watch
# Terminal 2: frontend with hot reload
cd Clients && npm run devBefore you start the backend, set DB_PASSWORD in Servers/.env to the password you gave the PostgreSQL container, and set SUPERADMIN_EMAIL and SUPERADMIN_PASSWORD.
Frontend: http://localhost:5173. Backend API: http://localhost:3000.
Environment variables reference
| Variable | Description |
|---|---|
| BACKEND_PORT | Port the API is published on, for example 3000. Required. |
| FRONTEND_PORT | Port the web app is published on, for example 8080. Required. |
| FRONTEND_URL | Address people use to open VerifyWise. Links in invitation and notification emails use it; when it is not set they point to http://localhost:5173 |
| JWT_SECRET | Secret for signing access tokens |
| REFRESH_TOKEN_SECRET | Secret for signing refresh tokens |
| DB_USER | PostgreSQL user |
| DB_PASSWORD | PostgreSQL password. Compose passes this to the database as POSTGRES_PASSWORD, so set DB_PASSWORD, not POSTGRES_PASSWORD |
| DB_NAME | Database name, for example verifywise |
| SUPERADMIN_EMAIL | Email address of the super admin account, created when the database is set up |
| SUPERADMIN_PASSWORD | Password for the super admin account, at least 8 characters |
First login
The first account is the super admin you set in .env.prod with SUPERADMIN_EMAIL and SUPERADMIN_PASSWORD. It is created when the database is set up. There is no registration page.
- Open your VerifyWise URL in a browser
- Log in with
SUPERADMIN_EMAILandSUPERADMIN_PASSWORD - In Super admin, create your organization and invite its first admin
- The admin accepts the invitation from the email link and lands on the dashboard of that organization
SUPERADMIN_PASSWORD (at least 8 characters) and keep .env.prod readable only by the people who run the server.SSL setup
For production, put a reverse proxy (Nginx, Caddy, or your cloud load balancer) in front of VerifyWise and terminate TLS there. Free certificates are available through Let's Encrypt.
- Install Nginx (or Caddy) on your server
- Obtain a certificate for your domain (Certbot handles Let's Encrypt automatically)
- Configure the proxy to forward traffic to ports 3000 (API) and 8080 (frontend)
- Set
FRONTEND_URLin.env.prodto yourhttps://address - Apply the change:
docker compose -f docker-compose.yml -f docker-compose.prod.yml --env-file .env.prod up -d