Multiple servers and build servers

Spread OnePloy workloads across several servers, deploy one app to more than one server, and use dedicated build servers.

OnePloy can manage any number of servers from one dashboard. Each resource runs on a primary server, applications can be deployed to additional servers, and dedicated build servers can take image builds off your production machines.

How do I choose where a resource runs?

When you add a resource and your team has more than one server, OnePloy asks which server and network to use. That becomes the resource’s primary destination. You can see it on the resource’s Servers page.

Can one application run on several servers?

Yes. On the application’s Servers page, add more servers as additional destinations and choose which one is primary. You can deploy or stop the application on each destination separately. Put a load balancer or DNS round robin in front of the servers if they should share traffic.

How do I move a resource to another server?

The API can move a resource to another environment or migrate it to another server:

  • POST /api/v1/applications/{uuid}/move and POST /api/v1/applications/{uuid}/migrate
  • The same endpoints exist for databases and services.

A resource can also be cloned with POST /api/v1/applications/{uuid}/clone.

What is a build server?

A build server only builds images. It does not run your applications. Using one keeps CPU-heavy builds away from the servers that serve traffic.

  1. Add a server and tick Use as a dedicated build server. See Add a server.
  2. On the build server, run docker login for the container registry you will push images to.
  3. In the application’s general settings, set the registry image name and tag, so the built image can be pushed and then pulled by the deployment server.
  4. Set Builder selection to Available build server (auto-select).

If several build servers are connected, OnePloy picks an available one automatically. Build servers are not offered for Docker Compose applications.

Last updated