Skip to content

Self-hosting

The SuricateWeb core is free software (AGPL-3.0): the code is on GitHub. It runs with no external database (SQLite) and no npm dependency.

Prerequisite: Node.js 22.13 or later (Chrome or Chromium for screenshots, optional).

Fenêtre de terminal
git clone https://github.com/arnaudroy-lab/suricateweb.git
cd suricateweb
cp .env.example .env # then edit SURICATE_USER and SURICATE_PASSWORD
npm start

Open http://localhost:3000, log in, click Add a site, then set up Telegram in Settings.

Fenêtre de terminal
docker build -t suricateweb .
docker run -d --name suricateweb -p 3000:3000 -v suricate-data:/data \
-e SURICATE_USER=admin -e SURICATE_PASSWORD='a-strong-password' suricateweb

The image includes Chromium for screenshots. The /data volume holds everything (database, history, Telegram token, screenshots): without it you lose everything on each redeploy.

  1. Create the application: Create Application, Git source, Build Type Dockerfile.
  2. Environment variables: SURICATE_USER, SURICATE_PASSWORD (required, at least 8 characters), TRUST_PROXY=1 (already in the image).
  3. Persistent volume (Advanced › Volumes): type Volume, mount path /data.
  4. Domain: your domain, port 3000, HTTPS on (Let’s Encrypt).
  5. Deploy.
Variable Default Role
SURICATE_USER admin Login name
SURICATE_PASSWORD — (required) Login password
PORT 3000 Listening port
HOST 127.0.0.1 Listening interface (0.0.0.0 to expose on the network)
DATA_DIR ./data SQLite database and screenshots
TRUST_PROXY — 1 behind a reverse proxy (Secure cookie, client IP)
CHROME_PATH detected Chrome or Chromium for screenshots
CHROME_WS_URL — Remote Chrome (a Browserless container, for example)
SCREENSHOT_KEEP_DEFAULT 168 Scheduled screenshots kept per site
SURICATE_DEMO — 1: demo mode, fictional data

The application is always protected by a login and password defined only in the environment: it refuses to start without a password. Changing the credentials signs out every session.

  • Put SuricateWeb behind HTTPS: otherwise the password travels in clear text.
  • Run a single instance: the database and the scheduler are not designed to run twice.
  • Checks start from your server: a site restricted by IP address must allow this one.
  • Backup: the /data folder holds everything. Otherwise, Settings › Data › Export saves the list of sites, their groups and their configuration (not the history).
  • A logged-in user can make the server request arbitrary addresses: do not share access.