Cluster
Join extra servers to the panel's Docker Swarm to replicate apps across machines.
A cluster joins extra servers as Swarm worker or manager nodes. Traefik on the wtree Cloud server load-balances traffic to the nodes running your app's replicas. Compare it with the other options in Servers.
Scale vertically first
Adding CPU and RAM to the wtree Cloud server at your VPS provider is faster and needs no extra configuration. Find your vertical limit before you consider horizontal scaling.
Before you start
- A running wtree Cloud server, which acts as manager.
- At least one extra server with the same architecture as the wtree Cloud server.
- A Docker registry, so other nodes can pull images. Docker Hub, GHCR, DigitalOcean, Amazon ECR, Google and Azure registries all work. See Registries.
- These ports open between all servers:
| Port | Protocol |
|---|---|
2377 | tcp |
7946 | tcp and udp |
4789 | udp |
Without them Traefik can't reach apps on other nodes and returns 502.
Allow these ports only from your other cluster servers, never from the internet. Swarm traffic between nodes isn't encrypted by default. Prefer a private network (provider VPC, WireGuard or Tailscale) and add nodes by their private IPs.
Add nodes
Add and test a registry under Integrations › Registries. Add node stays hidden until one exists.
Go to Servers › This server › Containers › Swarm › Nodes, click Add node and choose worker or manager. Managers manage cluster state and schedule services. Workers only run containers under the manager's rules.

Run the displayed instructions on the new server.
Verify
The node appears in the table under Swarm › Nodes.
Limits
wtree Cloud doesn't clean up storage on nodes other than the wtree Cloud server. Add the node as a remote server and configure cleanup there, or create a scheduled job. A node added only as a remote server needs no setup. See Servers.
For how Swarm works, see the Docker Swarm documentation.
