Skip to content

Deployments

A deployment is a resumable state machine, not a single docker compose up. It runs a fixed sequence and records every step:

Sync -> Prepare -> Pull -> Build -> Start -> Verify

The log streams to the Deployments tab as it goes, and is kept afterwards, so a deployment that failed last Tuesday still has its output.

The Deployments tab: numbered history down the left, streaming deployment log on the right

Sync fetches the Git revision when the project has a repository. It runs first because a compose file can name files in the checkout, such as include: src/compose.yaml or build: ./src. Prepare reads .env and runs docker compose config, refusing to continue if the file is invalid, so a typo fails before anything is stopped. Pull fetches images, and Build builds the services that have a build: key. Start hands over to docker compose up -d --remove-orphans.

Verify is the step that separates a deployment from a command. Windlass waits up to two minutes for every container to be running, for Docker healthchecks to report healthy, and for any windlass.health.* labels to pass. A stack that starts and immediately crash-loops is a failed deployment, not a green one, and the failure is recorded with its reason. A service that exits with code 0, such as a migration job, counts as done.

One deployment runs per project at a time. Deploying while one is running is refused.

The Deployments tab names the step it failed at, the exit code when there was one, and the line of output that matters, with the full log below it. The project’s overview shows the same failure in a card that says what is running now: if it failed before Start, the running containers did not change; if it failed at Start or Verify, some services may be on the new version. Either way it names the last deployment that succeeded, which is the one to roll back to.

When Pull fails because an image tag does not exist on Docker Hub, the failure lists up to five of the image’s tags nearest to the one asked for, ready to copy into compose.yaml. Windlass sends only the image name to Docker Hub’s public API, and asks nothing of other registries. An admin can turn this off in Settings > System.

A project whose latest deployment failed is also listed on the dashboard under Needs you, until a deployment of it succeeds.

If the panel restarts mid-deployment, the deployment resumes on startup from the step it was in. Jobs are reclaimed by their running status rather than being abandoned, so a server reboot at the wrong moment does not leave a project half-updated with nobody watching.

A project runs one deployment at a time. Press Deploy, or push with auto-deploy on, while one is running, and the new deploy waits: the Deployments tab lists it as Waiting above the running one, and it starts as soon as that one finishes, whether it succeeded or failed.

  • A project holds one waiting deploy. More requests while it waits are counted on it, not added: a deploy builds whatever the branch and files hold when it starts, so a second one would deploy the same thing.
  • Cancel on the Waiting row drops it. It never stops the deployment that is running.
  • The waiting deploy is kept in memory. If Windlass restarts before it starts, it is lost and the log says so; deploy again.
  • A deploy asked for while a backup is being restored waits for the restore in the same way. See Backups and restore.
  • A push that arrives during a rollback waits too, and then deploys the branch head, which undoes the rollback. Turn auto-deploy off first if you mean the rollback to stay.
  • Rollback and Promote do not wait. They are refused while a deployment runs, because each names an exact earlier state, and running it after a deploy you did not see finish could undo that deploy.

Every deployment is numbered, and any earlier deployment that succeeded can be rolled back to from the Deployments list. A rollback is a new deployment through the same state machine, verification included, so a rollback that would not come up healthy fails visibly rather than quietly leaving you worse off.

What it restores:

  • Pulled images are pinned to the digests recorded when that deployment ran, through a generated compose.rollback.yaml beside your compose file. A tag that has moved since, such as latest, still gets the old image.
  • On a Git project, the recorded commit is checked out in src/ and the services with a build: key are built from it, so the code goes back too.
  • Without Git, a service built on the server keeps its current image, and the log says so. Windlass has no earlier copy of its source to build from.

A rollback uses the compose file and .env as they are now, not as they were. If the deployment you are undoing changed either, change it back before rolling back.

Connect a repository in the project’s Git tab with its https:// clone URL. A public repository needs nothing else. For a private one, an admin first adds a connection under Settings, Git: GitHub by installing the GitHub App, which an admin creates under Settings, Users and sign-in, with Connect GitHub, or with a token, and GitLab with a token. Windlass stores the repository, branch and auto-deploy preference in .windlass.json, in the project directory, next to the compose file.

The repository is checked out into src/ inside the project directory. The project’s own compose.yaml is what runs, so point its build at the checkout with build: ./src. See Projects and Compose.

With auto-deploy on, a push to the configured branch triggers a deployment, and pushes to other branches are ignored. When the project uses a connection, Windlass registers the webhook on the repository for you. If it cannot, the Git tab shows the URL and secret to paste into the repository’s webhook settings, once. Windlass checks every delivery, the GitHub signature or the GitLab secret token, so an unsigned or wrongly signed request deploys nothing.

A push that arrives while a deployment is already running waits, and deploys once the running one has finished. See One deployment at a time.

Manual is the default. A project only auto-deploys because you asked it to.

Images from private registries need credentials, which an admin adds under Settings, Registries. Windlass logs the host in before each pull, and warns in the deployment log when an image’s registry has no credential. A GitHub connection can fill in a ghcr.io credential directly, which saves generating a token by hand for the common case.

Every build and pull leaves old images and build cache behind, and on a server that builds from Git they fill the disk. After each successful deployment Windlass removes unused images and trims the build cache. The settings are in Settings, System, Docker storage, admins only:

Setting Default What it does
Clean up after each successful deployment on Switch it off to clean up only by hand
Keep unused images for 7 days Counted from when the image was built, not pulled
Keep images of the last 5 deployments Per project, so rollback and promotion still find them
Build cache limit 10 GB The cache left after a trim; 0 clears all unused cache

An image counts as unused when no container, running or stopped, uses it. A failed deployment cleans nothing. While another deployment is running the clean-up does nothing, because an image that deployment has just pulled has no container yet and would look unused; the next successful deployment runs it. Clean up now runs it at once with the saved settings, and is refused while a deployment is running. The section shows what the last run removed, or why it did nothing, and every run is in the audit log.

The dashboard’s Disk card splits the used space into images, build cache, volumes and the rest, so you can see what a clean-up would reach. Volumes are never removed. The Needs you list warns when the disk is 85% full.

It does not reconstruct your container specification. Windlass shells out to docker compose, so what runs is what your compose file says, interpreted by Compose itself. The panel is not a translation layer that can disagree with it.