Skip to content

Installation

Requirements

  • Chromium or Google Chrome -- PRISM uses headless Chrome for rendering
  • Linux (x64 or arm64), macOS, or Docker
  • Memory: minimum 1GB, recommended 2GB+ (Chrome is memory-hungry)
  • Open files: 65535 recommended (LimitNOFILE in systemd)

The easiest way to run PRISM. Includes Chromium in the container.

# docker-compose.yml
services:
  prism:
    image: ghcr.io/trident-cache/prism:latest
    ports:
      - "4000:4000"   # Proxy
      - "4001:4001"   # Admin API
    environment:
      - PRISM_ORIGIN=http://your-spa:3000
    deploy:
      resources:
        limits:
          memory: 2G
docker compose up -d

# Verify
curl -I http://localhost:4000/

Update Docker to Latest

docker compose pull
docker compose up -d

OS Packages (Debian/Ubuntu)

# Add the repository (detects your distribution and installs the signing key)
curl -sSL https://pkg.trident-cache.com/prism/setup | sudo sh

# Install
sudo apt update
sudo apt install prism

# Install Chromium
sudo apt install chromium

# Start
sudo systemctl enable --now prism

OS Packages (RHEL/Rocky/Fedora)

# Add the repository (detects your distribution and installs the signing key)
curl -sSL https://pkg.trident-cache.com/prism/setup | sudo sh

# Install
sudo dnf install prism chromium

# Start
sudo systemctl enable --now prism

OS Packages (Alpine)

curl -sSL https://pkg.trident-cache.com/prism/setup | sudo sh
sudo apk add prism chromium
sudo rc-update add prism default && sudo rc-service prism start

Binary Download

Direct binary installation is not currently available to customers: the installer fetches release assets from a private repository. Use the package repository above, which is public and carries the same builds.

Verify Installation

# Check version
prism version

# Validate config
prism --config /etc/prism/config.toml validate

# Start manually (foreground)
prism --config /etc/prism/config.toml run

File Locations

Path Purpose
/usr/bin/prism Binary
/etc/prism/config.toml Configuration
/etc/default/prism Environment variables
/var/lib/prism/ Data directory
/var/log/prism/ Log directory
/usr/lib/systemd/system/prism.service Systemd service
/usr/lib/systemd/system/prism.socket Systemd socket

Systemd Service

The systemd unit includes security hardening:

[Service]
Type=simple
User=prism
Group=prism
ExecStart=/usr/bin/prism --config ${PRISM_CONFIG}
Restart=on-failure
RestartSec=5s

# Security
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
MemoryMax=2G
LimitNOFILE=65535
LimitNPROC=4096

Chrome needs /dev/shm

Chrome requires /dev/shm for shared memory. The systemd unit includes ReadWritePaths=/dev/shm. In Docker, ensure --shm-size=512m or mount /dev/shm.

Environment Variables

Set in /etc/default/prism:

PRISM_CONFIG=/etc/prism/config.toml
# RUST_LOG=info
# CHROME_PATH=/usr/bin/chromium

Next Steps