Skip to content

Install NexoVirt with Docker

NexoVirt ships as a Docker image: ghcr.io/nexovirt/panel. Tags are :<version>, :<line> (for example :1.3) and :latest. You can run it as a compose stack (recommended) or as one container.

  • A Linux host with Docker Engine 25 or newer (API 1.44) and the Compose plugin. The updater refuses older engines.
  • Ports 80 and 443 free on that host (or your own proxy, see Docker behind your own proxy).
  • A DNS name for the panel pointing at the host (an IP address works for a first test over plain http).
  • Proxmox nodes that can reach NEXOVIRT_PUBLIC_URL.
  1. Create a folder and download the files.

    Terminal window
    mkdir nexovirt && cd nexovirt
    curl -fsSLO https://release.nexovirt.com/docker/compose.yml
    curl -fsSLo .env https://release.nexovirt.com/docker/.env.example
    curl -fsSLO https://release.nexovirt.com/docker/nexovirt
    chmod +x nexovirt
  2. Edit .env. These values are required:

    VariableMeaning
    NEXOVIRT_PUBLIC_URLAddress of the panel as nodes and browsers see it.
    DB_PASSWORDPassword of the bundled MySQL user. Avoid ' and \.
    NEXOVIRT_IMAGESet to ghcr.io/nexovirt/panel:latest (or :1.3).

    Keep NEXOVIRT_IMAGE on a line tag (latest or 1.3), not a version. An update pulls the signed image and moves that tag. With a version tag such as :1.3.70 the update refuses with “Set NEXOVIRT_IMAGE to a line tag (latest or 1.3) first.”

  3. Start the stack.

    Terminal window
    docker compose up -d
  4. Open NEXOVIRT_PUBLIC_URL and sign in. If you left NEXOVIRT_ADMIN_PASSWORD empty, a password is generated and printed once in the log: docker compose logs web.

Useful .env values:

VariableDefaultMeaning
COMPOSE_PROFILESproxyproxy = bundled Caddy on 80/443. own-proxy = your own proxy. Add ,self-update for the panel update button.
NEXOVIRT_LICENSEemptyExisting license key. Empty = a free Community license on the first start.
NEXOVIRT_ADMIN_USERadminFirst admin account.
NEXOVIRT_ADMIN_PASSWORDemptyEmpty = generated and printed once.
PUID, PGID1000Owner of the files in the volumes.

The stack has the services web, provision, migrate, console, cron, caddy and db. Data lives in the volumes config, writable, uploads, caddy, db and backups.

Without a domain the panel runs on plain http on the host address, like the script install. Add the domain under Settings > Domain. Caddy then gets the certificates itself, and the nodes move to https.

For hosts without Compose (Unraid, TrueNAS, Portainer, Synology) run one container with the bundled database and proxy. Mount every path below. Without them the database and the certificates are lost when the container is recreated.

Terminal window
docker run -d --name nexovirt \
--label com.nexovirt.role=aio \
--restart unless-stopped \
--stop-timeout 600 \
-p 80:80 -p 443:443 -p 443:443/udp \
-e NEXOVIRT_PUBLIC_URL=https://panel.example.com \
-v /srv/nexovirt/config:/config \
-v /srv/nexovirt/writable:/app/writable \
-v /srv/nexovirt/uploads:/data/uploads \
-v /srv/nexovirt/backups:/backups \
-v /srv/nexovirt/mysql:/var/lib/mysql \
-v /srv/nexovirt/caddy:/data/caddy \
ghcr.io/nexovirt/panel:latest aio

Ready-made templates are in the docker/templates folder of the release: unraid/nexovirt.xml, truenas/compose.yml and portainer.json. All of them set the label and the six paths.

The first start creates an install ID in config. Recreating the container, updating, or moving the volume to another host keeps the same activation. Keep the config volume safe.

Proxmox nodes cannot reach the panel. Agents call NEXOVIRT_PUBLIC_URL. Check that the name resolves from the node, that ports 80 and 443 reach the host, and that the value has no path. Fix .env and run docker compose up -d.

The console stays black. The console uses a WebSocket on /console-proxy/. The bundled Caddy forwards it. Behind your own proxy it must be forwarded too: see Docker behind your own proxy.

nexovirt update refuses. Two causes. Containers named *-nxold are left over from an earlier update: check them, then remove them or rename them back as the message says. Or the file /config/update-broken exists because the last rollback was incomplete: see Docker updates and rollback.

The container exits at once. Read the log (docker compose logs web). A missing NEXOVIRT_PUBLIC_URL or DB_PASSWORD is named in the first lines.

NexoVirt is developed and designed by Nucez Software, your partner for custom software and web design.