Skip to content

Docker Installation

This guide covers running Nyravio with Docker Compose, including both building from source and using prebuilt images.

  • Docker Engine ≥ 24.0 with Docker Compose V2
  • 2 CPU cores and 4 GB RAM (minimum); 4 cores and 8 GB recommended
  • Port 8080 available (configurable)

Build from source when you want the latest development state or need to modify the code.

Terminal window
git clone https://github.com/LexProfi/Nyravio.git
cd Nyravio
bash setup.sh

The setup.sh script creates a .env file and generates all required secrets automatically. It is safe to re-run — existing values are never overwritten.

Terminal window
docker compose up -d --build

This builds the application image and starts three services:

Service Description Port
nyravio Application (API + frontend) 8080
db PostgreSQL 16 with pgvector 5432 (internal)
tika Apache Tika document processor 9998 (internal)
Terminal window
# Check all services are running
docker compose ps
# Check application health
curl http://localhost:8080/health/ready
Terminal window
# Download compose.yaml and setup script
curl -sSfLO https://raw.githubusercontent.com/LexProfi/nyravio/main/compose.yaml
curl -sSfLO https://raw.githubusercontent.com/LexProfi/nyravio/main/setup.sh
bash setup.sh
# Start with a specific published version
NYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio:VERSION docker compose up -d --no-build
Section titled “Pin by digest (recommended for production)”
Terminal window
# Get the digest for a specific version
docker inspect --format='{{index .RepoDigests 0}}' ghcr.io/lexprofi/nyravio:VERSION
# Pin to exact digest
NYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio@sha256:DIGEST docker compose up -d --no-build
Tag pattern Description
latest Most recent stable release (no prerelease suffix)
X.Y.Z Specific version (immutable once published)
X.Y.Z-beta.N Prerelease versions (not promoted to latest)

The default compose.yaml runs three services:

┌─────────────────────┐
│ nyravio │
│ (Java / Spring) │
│ :8080 │
└────┬──────────┬─────┘
│ │
┌────────▼──┐ ┌────▼──────┐
│ db │ │ tika │
│ PostgreSQL│ │ Apache │
│ :5432 │ │ :9998 │
└───────────┘ └───────────┘
  • nyravio depends on db (healthy) and tika (healthy) before starting.
  • db uses a named volume (pgdata) for data persistence.
  • nyravio uses a named volume (uploads) for user-uploaded files.

Key environment variables in .env:

Variable Description
NYRAVIO_SIGNING_SECRET JWT signing key (≥ 32 bytes). Generated by setup.sh.
NYRAVIO_ADMIN_ENCRYPTION_KEY Encryption key for stored credentials. Generated by setup.sh.
POSTGRES_PASSWORD PostgreSQL password. Generated by setup.sh.
NYRAVIO_SETUP_TOKEN One-time setup wizard token. Generated by setup.sh.
NYRAVIO_PORT Host port (default: 8080).

See Environment Variables for the complete reference.

Terminal window
# Stop services (preserves data)
docker compose down
# Stop and remove volumes (DESTROYS ALL DATA)
docker compose down -v