OPNexus Deutsch Install

← Back to home

Install OPNexus on Windows

OPNexus runs as a Docker stack. On Windows you use the Docker Desktop app for it: downloading, extracting and configuring happen in Explorer, starting takes a single command, everything else is done in the app. This guide takes you from a plain Windows installation to the first sign-in.

This page is also part of the documentation: docs.opnexus.dev

Before you start

Requirements

Step 1: Install Docker Desktop

  1. Download Docker Desktop for Windows from docker.com and run the installer. Keep “Use WSL 2 instead of Hyper-V” enabled; Docker Desktop sets up WSL 2 itself. Restart Windows if asked.
  2. Start Docker Desktop from the Start menu, accept the terms and skip the Docker sign-in if you do not want an account.
  3. Wait until “Engine running” appears at the bottom left. If Docker Desktop says WSL is outdated, run wsl --update in PowerShell and restart Docker Desktop.
  4. Under Settings › General, turn on “Start Docker Desktop when you sign in to your computer” so OPNexus is back after a restart.

Step 2: Download and set up OPNexus

  1. Download the release bundle opnexus-1.42.3.tar.gz (all versions on the release page).
  2. Create a folder, for example C:\OPNexus, and move the file there. Extract it with right-click › “Extract All”. (Windows 10 Explorer does not know the format; there, right-click in the folder › “Open in Terminal” and run tar -xzf opnexus-1.42.3.tar.gz.)
  3. Open the extracted folder opnexus-1.42.3. Copy the file .env.example in it and name the copy .env (no extension; if extensions are hidden, turn on View › Show › File name extensions).
  4. Open .env with right-click › “Open with” › Notepad and set:
    POSTGRES_PASSWORD=a-long-password-of-your-own
    ADMIN_PASSWORD=your-sign-in-password-at-least-12-characters
    Save (Ctrl+S). Notepad keeps the file's line format; do not use a word processor.

Step 3: Start OPNexus

  1. In the folder opnexus-1.42.3, right-click an empty spot › “Open in Terminal” (Windows 10: type powershell into Explorer's address bar and press Enter).
  2. Enter:
    docker compose up -d
    The first time, Docker downloads the images; this takes a few minutes.
  3. Switch to Docker Desktop › Containers. The group opnexus appears there. Expand it and wait until all services have a green dot and backend and frontend show “healthy”.

Sign in and trust the certificate authority

Open https://localhost and sign in as admin with the ADMIN_PASSWORD from the .env; the setup assistant guides you through the first steps. OPNexus uses its own certificate authority, so the browser warns at first. The connection is encrypted anyway.

Get rid of the warning for good:

  1. Download https://localhost/opnexus-ca.crt (in the browser via “Continue to site”).
  2. Compare before importing: docker compose exec -T proxy cat /data/caddy/pki/authorities/local/root.crt in the OPNexus folder shows the server's certificate authority. Open the downloaded opnexus-ca.crt in Notepad; the text must be exactly the same.
  3. Double-click the file › “Install Certificate” › “Current User” › “Place all certificates in the following store” › Trusted Root Certification Authorities › Finish.
  4. Restart the browser.
  5. Firefox has its own store: Settings › Privacy & Security › View Certificates › Authorities › Import.

Reach it from the network

For other machines to open OPNexus, your Windows PC needs a fixed address on the network (for example a DHCP reservation). Enter it with Notepad in the .env (example address 10.0.0.5):

OPNEXUS_SITES=10.0.0.5
OPNEXUS_DEFAULT_SNI=10.0.0.5
FRONTEND_ORIGIN=https://10.0.0.5
COOKIE_SECURE=true
TRUST_PROXY_HEADERS=true

Apply the change with docker compose up -d in the OPNexus folder. If another machine cannot reach the page, allow port 443 in the Windows Firewall (PowerShell as administrator): New-NetFirewallRule -DisplayName "OPNexus HTTPS" -Direction Inbound -Protocol TCP -LocalPort 443 -Action Allow -Profile Private. Import the certificate authority on every machine that uses OPNexus (with the address instead of localhost). Details are in the manual.

Day to day: OPNexus in Docker Desktop

Almost everything happens in the Docker Desktop app, section Containers. OPNexus shows up there as the group opnexus with the services backend, frontend, proxy, postgres and postgres-backup.

TaskIn Docker Desktop
Is everything running?Green dot on every service; backend and frontend also show “healthy”.
Stop / start OPNexus■ (Stop) or ▶ (Start) in the opnexus row. Your data is kept.
Restart one service⟳ (Restart) in its row, e.g. proxy after changing the addresses.
View the logClick the service › tab “Logs”. Without ADMIN_PASSWORD, the log of backend shows the generated sign-in password on the first start.
Start automaticallyTurn on Settings › General › Start Docker Desktop when you sign in; the containers then start by themselves.

Careful: Volumes hold OPNexus' data (database, firewall credentials, keys). A deleted volume is gone for good; take a full backup first (below).

Updates, backups and password: the opnexus tool

The bundled tool opnexus is a Bash script for Linux. On Windows you run it from its Docker image instead, which already contains Bash, Docker Compose and the signature check. Enter the commands in PowerShell in the OPNexus folder (right-click in the folder › “Open in Terminal”):

docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock -v "${PWD}:/project" ghcr.io/opnexus-dev/opnexus-updater:latest opnexus status
TaskLast word instead of status
Status and versionstatus
Update to the newest version (verifies signatures, backs up the database, rolls back on problems)update
Undo the last updaterollback
Back up the databasebackup
Full backup including credentials (asks for a passphrase)backup --full
New sign-in password for adminpassword

Details: tool documentation. An update also replaces the docker-compose.yml in the folder (the old one is kept as a backup); your own changes belong in a docker-compose.override.yml.

Troubleshooting

ProblemSolution
“docker” is not recognisedDocker Desktop is not running or was just installed. Start Docker Desktop, wait for “Engine running”, reopen the terminal.
Docker Desktop does not start, “Virtualization support not detected”Enable virtualisation in the BIOS/UEFI (Intel VT-x or AMD-V, often called “SVM”).
“port is already allocated”Port 80 or 443 is in use (often IIS or another web server). Stop that service or change PROXY_HTTPS_PORT and PROXY_HTTP_PORT in the .env; then open https://localhost:PORT.
A service stays red or keeps restartingIn Docker Desktop click the service › “Logs”. Often POSTGRES_PASSWORD is missing from the .env or the file is called .env.txt. If the backend log says “password authentication failed”, the database volume comes from an earlier attempt with a different password: put the original password back or, if there is no data yet, run docker compose down -v in the OPNexus folder (this deletes the database) and start again.
Two-factor codes are rejectedThe clock of the Docker environment can drift after sleep. Quit Docker Desktop (right-click the whale icon › Quit) and start it again.
Nothing runs after a restartDocker Desktop only starts after you sign in. Turn on automatic start (step 1) and sign in.
Forgot the sign-in passwordopnexus password via the tool (section above) sets a new one and shows it.

More help is in the manual.