Installation from the release bundle
This is the recommended way, on Linux, macOS and Windows (WSL). The bundle
(opnexus-<version>.tar.gz on the release page) contains a ready-made Compose file with the
signed release images (default registry: ghcr.io/opnexus-dev), a template for the
.env, the opnexus tool and a short guide (INSTALL.txt). Nothing is built on your machine;
docker compose up -d pulls the images itself the first time.
curl -LO https://github.com/OPNexus-dev/OPNexus/releases/download/v<version>/opnexus-<version>.tar.gz
tar xzf opnexus-<version>.tar.gz && cd opnexus-<version>
install -m 600 .env.example .env # readable only by you
sed -i "s|^POSTGRES_PASSWORD=.*|POSTGRES_PASSWORD=$(openssl rand -hex 24)|" .env # your own database password
docker compose up -d
./opnexus password # shows the admin password if ADMIN_PASSWORD was emptyThen open https://localhost on the same machine; the setup assistant guides you through the first steps.
From another machine the proxy needs to know the server's address first (by default it only answers for localhost; a request
by IP gets an empty page). Set OPNEXUS_SITES, OPNEXUS_DEFAULT_SNI, FRONTEND_ORIGIN and COOKIE_SECURE=true in the .env (details under
Network access and TLS) and run docker compose up -d again:
sed -i 's|^OPNEXUS_SITES=.*|OPNEXUS_SITES=192.168.1.50|; s|^OPNEXUS_DEFAULT_SNI=.*|OPNEXUS_DEFAULT_SNI=192.168.1.50|; s|^FRONTEND_ORIGIN=.*|FRONTEND_ORIGIN=https://192.168.1.50|; s|^COOKIE_SECURE=.*|COOKIE_SECURE=true|' .env && docker compose up -dYou do not have to remember the database password, it is in the .env. More settings (addresses, TLS) are described under
Configuration (.env).
Good to know
POSTGRES_PASSWORD(likewisePOSTGRES_DBandPOSTGRES_USER) applies only on the very first start with an empty database volume. The volume keeps its password. If the password in the.envchanges later, the database rejects the backend, and backend andpostgres-backuprestart in a loop (the backend log names the reason). Either put the original password back or, if there is no data yet, remove the volumes withdocker compose down -v(deletes the database and all credentials).- The Compose project name is always
opnexus, no matter which folder you install in. A second folder (for example a freshly unpacked bundle next to the old one) therefore uses the same containers and volumes. For a truly separate second instance see Second instance on the same machine. - The first start creates the database schema; on slow machines (Raspberry Pi, small VM) this can take several minutes.
docker compose psshows "starting" until the backend is healthy.