wtree Cloud

Build server

Build application images on a dedicated server and deploy them to your other servers.

A build server clones your repository, builds the image and pushes it to a registry. Deployment servers then pull it. Use one to get more build resources without paying for large deployment servers, to keep builds away from production, or to build once and deploy to several servers.

Build servers work for applications only. Docker Compose deployments don't support them.

Before you start

  • A server for builds with SSH access. You can reuse the SSH key of your deployment servers.
  • A Docker registry for the built images. See Registries.
  • Enough disk space. Turn on Enable Docker cleanup in the server form (Settings › Edit server), or schedule a job such as docker image prune -af.

Add the build server

Go to Servers, click Add server and set Server type to Build server. Fill in:

FieldValue
NameA label such as "Build Server - EU".
IP addressPublic IP.
PortSSH port, default 22.
UsernameUsually root.
SSH keyKey used for authentication.

Open the server, click Open setup under Set up server on the Overview tab and follow the automatic (copy and run a command) or manual instructions.

On the Deployments tab click Setup server. The modal shows each command. It installs only Docker, Nixpacks, Railpack and Heroku Buildpacks, and starts no containers.

Open the Validate tab and confirm all items are green.

Use it in an application

Add a registry under Integrations › Registries with its credentials.

In the application's Settings › Source and build, find the Build server card and pick the build server.

In the same card, select the Build registry that receives the image.

On each deploy, wtree Cloud builds on the build server over SSH and pushes the image to the registry. It then connects to the deployment servers, which pull the image and start the container. Allow a few moments after the push for the deployment servers to pull and cache the image.

Next steps

On this page