wtree Cloud

Install wtree Cloud

Install wtree Cloud on a Linux server with one command, then finish setup in the browser.

Run the installer on a fresh Linux server to get the panel, its database and Traefik running under Docker Swarm.

Before you start

  • A Linux VPS or server you can run commands on as root. Tested distributions: Ubuntu 18.04 to 24.04 LTS (plus 23.10), Debian 10 to 12, Fedora 40, CentOS 8 and 9.
  • At least 2 GB of RAM and 30 GB of disk, so Docker builds don't exhaust the server.
  • Ports 80 (HTTP, Traefik), 443 (HTTPS, Traefik) and 3000 (panel) free. The installer stops if any is in use.
  • Any provider works, for example Hetzner, DigitalOcean, Vultr, Linode, Hostinger, Scaleway, Google Cloud or AWS.

Install

Run the installer as root:

curl -fsSL https://github.com/w3panel/w3panel-installer/releases/latest/download/install.sh \
  | sudo sh

The script downloads the wtree-cloud command for your architecture (x86_64 or arm64), checks its SHA-256 checksum, installs it in /usr/local/bin and runs wtree-cloud install. That installs Docker if it's missing, sets up Swarm, the network, the database password and auth secret, PostgreSQL, the panel and Traefik, then waits for the dashboard. The log is /var/log/w3panel-install.log.

Open http://<server-ip>:3000 and create the administrator account. Allow port 3000 in your firewall if the page doesn't load.

wtree Cloud setup page

Put the panel behind a domain with HTTPS. See Web server and Domains.

Optional, recommended: close the IP and port access. Make sure the domain works first, or you lose access. Open Servers › This server, open the Panel menu in the page header and choose Disable port 3000. You must be on the panel's domain to do this. wtree Cloud restarts and shows a command to re-enable the port. To do it from the server:

docker service update --publish-rm "published=3000,target=3000,mode=host" w3panel

Running the installer again on a server that already has wtree Cloud stops before changing anything. The image ghcr.io/w3panel/w3panel is public, so no registry login is needed.

Installer options

Each option is a flag (see w3panel --help) and an environment variable. Pass variables after sudo, because sudo resets your environment.

OptionEnvironment variableDefault
--version <tag>W3PANEL_VERSIONlatest
--image <repository>W3PANEL_IMAGEghcr.io/w3panel/w3panel
--registry-user <name>W3PANEL_REGISTRY_USERnone
--registry-token <token>W3PANEL_REGISTRY_TOKENnone
--advertise-addr <ip>ADVERTISE_ADDRfirst private IP, else the public IP
--swarm-init-args <args>DOCKER_SWARM_INIT_ARGSnone
--dnsrrENDPOINT_MODE=dnsrron automatically in Proxmox LXC

To install from a private registry or your own build, pass --image together with W3PANEL_REGISTRY_USER and W3PANEL_REGISTRY_TOKEN (a token that can read the image).

Pin a version

Image tags are latest, sha-<commit> and release versions such as v0.2.2.

curl -fsSL https://github.com/w3panel/w3panel-installer/releases/latest/download/install.sh \
  | sudo W3PANEL_VERSION=v0.2.2 sh

Avoid network conflicts

Pass your own Swarm address pool when the default clashes with a cloud VPC.

curl -fsSL https://github.com/w3panel/w3panel-installer/releases/latest/download/install.sh \
  | sudo DOCKER_SWARM_INIT_ARGS="--default-addr-pool 172.20.0.0/16 --default-addr-pool-mask-length 24" sh

Set the advertise address

Set it when the installer can't detect the IP, or when Swarm should use a specific interface such as a VPN or WireGuard address.

curl -fsSL https://github.com/w3panel/w3panel-installer/releases/latest/download/install.sh \
  | sudo ADVERTISE_ADDR=192.168.1.100 sh

Kernels without IPVS

Swarm service discovery needs IPVS in the kernel. Minimal or appliance distributions such as ZimaOS and other Buildroot images may lack it. Install in DNSRR endpoint mode there:

curl -fsSL https://github.com/w3panel/w3panel-installer/releases/latest/download/install.sh \
  | sudo ENDPOINT_MODE=dnsrr sh

See Networking troubleshooting to detect missing IPVS modules and the trade-offs of DNSRR.

The installer detects Proxmox LXC containers and switches to DNSRR endpoint mode (--endpoint-mode dnsrr) on its own.

Update

Run this on the server:

sudo wtree-cloud update
sudo wtree-cloud update --version v0.2.3

The second form switches to a specific image tag. The Updates card in Servers › This server › Overview points to the same command.

The wtree-cloud command

Servers installed before v0.2.4 have this command as w3panel. Every command works under either name. Running the install command again on such a server installs wtree-cloud, links w3panel to it, and leaves the panel alone.

CommandWhat it does
wtree-cloud statusShows the services and whether the dashboard answers
wtree-cloud reset-passwordResets the admin password
wtree-cloud uninstall [--purge]Removes the services. --purge also deletes the database, volumes and configuration
wtree-cloud versionPrints the installer version

Next steps

On this page