Skip to content
neatploy.
Build & deploy

Deployments

Deployments turn a source into an immutable build and release. Each deployment records the exact image reference and encrypted variables snapshot used at release time.

Sources and builds

Neatploy supports three deployment sources:

  • GitHub repository and branch — triggered automatically on push via the Neatploy GitHub App, with configurable root_dir and dockerfile_path.
  • Container image — pull from any public registry or supply stored registry credentials.
  • CLI upload — run neatploy up to upload your local folder as a tarball (respecting .dockerignore, up to 500 MB).

Services are added one at a time. A multi-container stack is composed of multiple services inside the same project environment, communicating over <service>.internal.

In auto build mode, Neatploy uses your Dockerfile when present; otherwise it builds automatically with Railpack (honouring railpack.json if included).

Zero-downtime swaps and rollbacks

When a deployment starts, Neatploy boots the new replicas and waits for readiness—either an HTTP 200 on your configured healthcheck_path or a TCP listen check (automatic port detection inspects single EXPOSE ports and common app ports when no port is pinned).

Traffic at the Caddy edge switches only after every new replica is healthy, draining the old containers for 30 seconds before sending SIGTERM. If a health check fails, the previous deployment continues serving uninterrupted.

Neatploy retains the 3 most recent images per service and environment (plus the currently active image if older), enabling one-click rollbacks that restore both the image and its original variables snapshot.

Crash recovery

If a running container crashes, Docker restarts it up to 5 times immediately. After that, the deployment transitions to crashed while the scheduler restarts dead replicas with exponential backoff from 10 seconds up to 5 minutes until every replica is healthy again. Databases and services with attached volumes are always pinned to the node holding their data (volume_homes).

Build limits

Builds allow 1 concurrent build per organisation, with a 15-minute timeout and 2 vCPU / 4 GB RAM per build. See variables and build secrets before using credentials in a build.