Self-host in 5 minutes
Prerequisites
Section titled “Prerequisites”- Docker + Docker Compose installed
- Git installed
- 1 GB RAM minimum (2 GB recommended for production)
Quick start (local / dev)
Section titled “Quick start (local / dev)”-
Clone the repo
Terminal window git clone https://github.com/izhubs/izhubs-erp.gitcd izhubs-erp -
Set up environment
Terminal window cp .env.example .env.local# Edit .env.local with your values (see table below) -
Start services
Terminal window docker compose up -d -
Open the app
Visit http://localhost:1303 — you should see the izhubs login screen.
Environment variables
Section titled “Environment variables”| Variable | Required | Description |
|---|---|---|
DATABASE_URL | ✅ | PostgreSQL connection string |
REDIS_URL | ✅ | Redis connection string |
JWT_SECRET | ✅ | Secret for signing JWT tokens (min 32 chars) |
JWT_REFRESH_SECRET | ✅ | Secret for refresh tokens |
NEXT_PUBLIC_APP_URL | ✅ | Public URL of your izhubs instance |
NODE_ENV | — | development or production |
Production deploy (Coolify recommended)
Section titled “Production deploy (Coolify recommended)”-
Push your fork to GitHub
-
Create a new service in Coolify
- Source: your GitHub repo
- Build command:
npm install && npm run build - Start command:
npm start
-
Add environment variables in Coolify dashboard (same as above)
-
Configure domain — point your domain to Coolify reverse proxy
-
Run migrations
Terminal window npm run db:migrate
Keeping up to date
Section titled “Keeping up to date”git pull origin maindocker compose up -d --buildnpm run db:migrate