Docker Installation
This guide covers running Nyravio with Docker Compose, including both building from source and using prebuilt images.
Prerequisites
Section titled “Prerequisites”- 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
Section titled “Build from source”Build from source when you want the latest development state or need to modify the code.
1. Clone and configure
Section titled “1. Clone and configure”git clone https://github.com/LexProfi/Nyravio.gitcd Nyraviobash setup.shThe setup.sh script creates a .env file and generates all required secrets automatically. It is safe to re-run — existing values are never overwritten.
2. Start the services
Section titled “2. Start the services”docker compose up -d --buildThis 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) |
3. Verify
Section titled “3. Verify”# Check all services are runningdocker compose ps
# Check application healthcurl http://localhost:8080/health/readyPrebuilt Docker images
Section titled “Prebuilt Docker images”Run a specific version
Section titled “Run a specific version”# Download compose.yaml and setup scriptcurl -sSfLO https://raw.githubusercontent.com/LexProfi/nyravio/main/compose.yamlcurl -sSfLO https://raw.githubusercontent.com/LexProfi/nyravio/main/setup.shbash setup.sh
# Start with a specific published versionNYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio:VERSION docker compose up -d --no-buildPin by digest (recommended for production)
Section titled “Pin by digest (recommended for production)”# Get the digest for a specific versiondocker inspect --format='{{index .RepoDigests 0}}' ghcr.io/lexprofi/nyravio:VERSION
# Pin to exact digestNYRAVIO_IMAGE=ghcr.io/lexprofi/nyravio@sha256:DIGEST docker compose up -d --no-buildImage channels
Section titled “Image channels”| 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) |
Services architecture
Section titled “Services architecture”The default compose.yaml runs three services:
┌─────────────────────┐ │ nyravio │ │ (Java / Spring) │ │ :8080 │ └────┬──────────┬─────┘ │ │ ┌────────▼──┐ ┌────▼──────┐ │ db │ │ tika │ │ PostgreSQL│ │ Apache │ │ :5432 │ │ :9998 │ └───────────┘ └───────────┘- nyravio depends on
db(healthy) andtika(healthy) before starting. - db uses a named volume (
pgdata) for data persistence. - nyravio uses a named volume (
uploads) for user-uploaded files.
Configuration
Section titled “Configuration”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.
Stopping and removing
Section titled “Stopping and removing”# Stop services (preserves data)docker compose down
# Stop and remove volumes (DESTROYS ALL DATA)docker compose down -vNext steps
Section titled “Next steps”- First-Time Setup — create your admin account
- Production Deployment — HTTPS, reverse proxy, and hardening
- Environment Variables — full configuration reference