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
- OPNexus is developed and tested on Linux. On Windows the same stack runs in Docker Desktop. This path is not tested on every Windows version; feedback is welcome.
- For permanent operation a Linux server or Linux VM is the better choice. Docker Desktop only starts after you sign in to the PC and pauses while the PC sleeps; during that time there is no monitoring and no notifications.
- Windows Server: Docker Desktop is not supported there. Use a Linux VM (Hyper-V or VMware) and follow the Linux instructions in the manual.
- Docker Desktop licence: free for individuals, education, open-source projects and small businesses, paid for larger companies. See Docker for the current terms.
Requirements
- Windows 11 or Windows 10 (64-bit, current release) and administrator rights to install Docker Desktop.
- Hardware virtualisation enabled (usually the default; Task Manager › “Performance › CPU” shows “Virtualization: Enabled”).
- 8 GB of RAM in the PC as a sensible minimum.
- Ports 80 and 443 are free (no IIS or other local web server).
- The PC reaches your OPNsense firewalls over HTTPS (for example on the same network or through a VPN).
Step 1: Install Docker Desktop
- 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.
- Start Docker Desktop from the Start menu, accept the terms and skip the Docker sign-in if you do not want an account.
- Wait until “Engine running” appears at the bottom left. If Docker Desktop says WSL is outdated, run
wsl --updatein PowerShell and restart Docker Desktop. - 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
- Download the release bundle
opnexus-1.42.3.tar.gz(all versions on the release page). - 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 runtar -xzf opnexus-1.42.3.tar.gz.) - Open the extracted folder
opnexus-1.42.3. Copy the file.env.examplein it and name the copy.env(no extension; if extensions are hidden, turn on View › Show › File name extensions). - Open
.envwith right-click › “Open with” › Notepad and set:Save (Ctrl+S). Notepad keeps the file's line format; do not use a word processor.POSTGRES_PASSWORD=a-long-password-of-your-own ADMIN_PASSWORD=your-sign-in-password-at-least-12-characters
Step 3: Start OPNexus
- In the folder
opnexus-1.42.3, right-click an empty spot › “Open in Terminal” (Windows 10: typepowershellinto Explorer's address bar and press Enter). - Enter:
The first time, Docker downloads the images; this takes a few minutes.
docker compose up -d - Switch to Docker Desktop › Containers. The group
opnexusappears there. Expand it and wait until all services have a green dot andbackendandfrontendshow “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:
- Download
https://localhost/opnexus-ca.crt(in the browser via “Continue to site”). - Compare before importing:
docker compose exec -T proxy cat /data/caddy/pki/authorities/local/root.crtin the OPNexus folder shows the server's certificate authority. Open the downloadedopnexus-ca.crtin Notepad; the text must be exactly the same. - Double-click the file › “Install Certificate” › “Current User” › “Place all certificates in the following store” › Trusted Root Certification Authorities › Finish.
- Restart the browser.
- 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=trueApply 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.
| Task | In 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 log | Click the service › tab “Logs”. Without ADMIN_PASSWORD, the log of backend shows the generated sign-in password on the first start. |
| Start automatically | Turn 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| Task | Last word instead of status |
|---|---|
| Status and version | status |
| Update to the newest version (verifies signatures, backs up the database, rolls back on problems) | update |
| Undo the last update | rollback |
| Back up the database | backup |
| Full backup including credentials (asks for a passphrase) | backup --full |
New sign-in password for admin | password |
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
| Problem | Solution |
|---|---|
| “docker” is not recognised | Docker 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 restarting | In 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 rejected | The 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 restart | Docker Desktop only starts after you sign in. Turn on automatic start (step 1) and sign in. |
| Forgot the sign-in password | opnexus password via the tool (section above) sets a new one and shows it. |
More help is in the manual.