Documentation Index
Fetch the complete documentation index at: https://docs.igrisecurity.com/llms.txt
Use this file to discover all available pages before exploring further.
Docker Deployment
Igris ships with a Dockerfile for containerized deployment. This guide covers building the image, running locally, and deploying to EC2.Building the Image
From the repository root:- Install — installs dependencies with Bun
- Build — compiles the Hono API server
- Runtime — minimal production image
Running Locally
Deploying to EC2
Igris deploys to EC2 via GitHub Actions with a systemd service.1. Provision an EC2 Instance
- Ubuntu 22.04+ recommended
- Install Bun:
curl -fsSL https://bun.sh/install | bash - Create the app directory:
sudo mkdir -p /opt/igris && sudo chown ubuntu:ubuntu /opt/igris - Copy your
.envfile to/opt/igris/.env
2. Create the systemd Service
3. Deploy via GitHub Actions
Pushes tomain trigger the deploy workflow which:
- SSHs into your EC2 instance
- Pulls the latest code to
/opt/igris - Runs
bun install - Applies database migrations via
bunx drizzle-kit migrate - Restarts the
igris-apisystemd service - Verifies the
/healthendpoint
4. Verify
Frontend Deployment
The Next.js frontend can be deployed separately:- Vercel — connect the repo, set the root directory to
apps/web - EC2 — similar process with a separate systemd service
NEXT_PUBLIC_API_URL environment variable to point to your API deployment.
Health Check
The API exposes a/health endpoint that returns: