On-Premise Installation
This guide covers the installation of Vulnotes for on-premise deployments using the Vulnotes CLI.
System Requirements
Minimum Requirements
- CPU: 2 cores
- RAM: 4GB
- Storage: 20GB
Recommended Requirements
- CPU: 4+ cores
- RAM: 8GB+
- Storage: 50GB+
Software Dependencies
- Docker and Docker Compose
- curl, jq, OpenSSL, and a SHA-256 utility
Install Dependencies
Docker
Follow the official Docker installation guide for your OS: docs.docker.com/engine/install
Other Dependencies
# Ubuntu/Debian
sudo apt-get install -y curl jq openssl coreutilsInstall the Vulnotes CLI
Install Script
curl -fsSLO https://raw.githubusercontent.com/vulnotes/vulnotes-cli/master/install.sh
bash install.shThe installer downloads the latest published CLI release and verifies its SHA-256 checksum before installing it.
Manual Install
git clone https://github.com/vulnotes/vulnotes-cli.git
cd vulnotes-cli
chmod +x vulnotesWhen using the manual install, replace vulnotes with ./vulnotes in the commands below.
Get a Provisioning Token
- Go to manager.vulnotes.com
- Log in with your on-premise license
- Generate a provisioning token
WARNING
Provisioning tokens expire after 30 minutes.
Initialize Vulnotes
Create a directory for the deployment, then run the initialization command from that directory:
mkdir -p ~/vulnotes
cd ~/vulnotes
vulnotes init --token YOUR_PROVISIONING_TOKENThe current directory is used by default. To use another location, pass it with --dir:
vulnotes init --token YOUR_PROVISIONING_TOKEN --dir /path/to/vulnotesThe CLI will interactively ask you to configure:
- Domain/URL: e.g.
https://vulnotes.company.comorhttp://localhost - HTTP port: default
80 - Network binding:
127.0.0.1(local only) or0.0.0.0(network accessible)
The init command handles everything automatically:
- Authenticates with the Vulnotes private Docker registry
- Generates all configuration files (
.env,docker-compose.yml,nginx.conf,license.json) - Creates the backup directory
- Enables automatic daily backups at 2:00 AM
Start Vulnotes
vulnotes startThis pulls the latest Docker images and starts all services. Once started, access Vulnotes.
Create the administrator account
The first visit opens the setup page. Create the administrator account there, as described in Initial Setup.
SSL / HTTPS
The CLI configures Vulnotes with HTTP by default. For production deployments, place a reverse proxy in front of Vulnotes with SSL termination.
You can use Traefik, Caddy, or an Nginx reverse proxy with Let's Encrypt certificates. Vulnotes supports the X-Forwarded-Proto header for proper SSL detection behind a proxy.
Forward every path to the bundled Nginx port (the HTTP port chosen during init), including /api and /socket.io. Do not send /api straight to the backend container, or browser sign-in fails. On installations created with an older CLI, run vulnotes update to refresh nginx.conf.
Domain and SSO
Google Workspace and Microsoft Entra ID sign-in build their callback and return URLs from DOMAIN in the .env file of the installation directory. It must be the public HTTPS address users open, such as https://vulnotes.company.com. Plain HTTP is only accepted for localhost, so these providers fail on an instance whose DOMAIN is http:// on any other host. LDAP does not use these URLs.
When the HTTP port is not the scheme's default, init appends it to DOMAIN (https://vulnotes.company.com:8080). Behind a proxy listening on 443, remove the port from DOMAIN. After changing .env, run vulnotes update to recreate the containers: vulnotes restart keeps the previous values.
WARNING
Running without HTTPS in production is not recommended. All authentication tokens and session data would be transmitted in plaintext.
CLI Commands
Lifecycle
| Command | Description |
|---|---|
vulnotes start | Pull latest images and start all services |
vulnotes stop | Stop all services |
vulnotes restart | Restart all services |
vulnotes update | Refresh managed configuration, pull the latest images, and recreate containers |
Logs
# View all logs
vulnotes logs
# View logs for a specific service
vulnotes logs backend
# Follow logs in real-time
vulnotes logs -f
# Show last 50 lines
vulnotes logs -n 50Available services: nginx, backend, frontend, mongodb, puppeteer, mcp
Backup & Restore
# Create a backup
vulnotes backupThis creates a timestamped archive in the backups/ directory containing the MongoDB database, uploaded files, .env, and Nginx configuration.
# Restore the database and uploaded files
vulnotes restore /path/to/backup.tar.gz
# Also restore .env and nginx.conf
vulnotes restore /path/to/backup.tar.gz --restore-configRestore keeps the current .env and nginx.conf by default. Use --restore-config only with an archive you created and trust, since it replaces the current secrets and Nginx configuration.
INFO
Before restoring, the CLI asks whether it should create a safety backup of the current instance.
Automatic Backups
Automatic backups are enabled during initialization and run every day at 2:00 AM. The retention policy keeps daily backups for 7 days, one backup per week for 4 weeks, and one backup per month for 6 months.
# Check the current schedule
vulnotes backup-schedule status
# Enable or disable automatic backups
vulnotes backup-schedule enable
vulnotes backup-schedule disable
# Apply the retention policy manually
vulnotes backup-rotateReset an Instance
vulnotes resetReset removes the database, uploaded files, logs, and license cache, then starts a clean instance. It keeps .env, license.json, nginx.conf, and docker-compose.yml. The new instance opens on the setup page.
The CLI creates a backup before deleting any data and requires two confirmations. Vulnotes must be running so this backup can be created.
Help
vulnotes help
vulnotes versionThe CLI checks for new releases automatically. Set VULNOTES_SKIP_UPDATE_CHECK=1 if update checks must be disabled for a command.
Architecture
The deployment consists of 6 Docker containers:
| Service | Description |
|---|---|
| nginx | Reverse proxy, rate limiting, security headers |
| backend | Node.js API server with Socket.IO |
| frontend | Next.js application |
| mongodb | Database |
| puppeteer | Headless Chrome for PDF generation |
| mcp | Model Context Protocol server for AI integrations |
All containers run on an isolated Docker bridge network. Data is persisted using Docker named volumes.
Troubleshooting
Port already in use
If port 80 is taken by another service, you can reinitialize with a different port or edit the generated docker-compose.yml to change the port mapping.
Cannot connect to Docker daemon
Make sure Docker is running and your user is in the docker group:
sudo systemctl start docker
sudo usermod -aG docker $USERLog out and back in after adding yourself to the group.
Containers not starting
Check the logs to identify the failing service:
vulnotes logs
vulnotes logs backend
vulnotes logs mongodbCommon causes:
- Insufficient disk space for Docker volumes
- MongoDB needs a few seconds to become healthy on first start
- Missing or expired license (check
license.json)
Next Steps
- Initial Setup: Create your admin account and configure your instance
