Skip to content

Install

Run on a Linux x86_64 or arm64 server:

Terminal window
curl -fsSL https://get.windlass.run | sudo sh

The installer:

  1. checks for Docker with the Compose v2 plugin, and if Docker is missing asks before installing it from get.docker.com (--yes agrees without asking, --no-docker refuses);
  2. installs Git with apt, dnf or apk if it is missing;
  3. installs Caddy, from Caddy’s own repository on apt and dnf or Alpine’s on apk, unless --no-caddy is supplied or Caddy is already there. On a fresh Caddy install it replaces the packaged welcome Caddyfile with one that only enables the admin API on 127.0.0.1:2019, keeping the original as /etc/caddy/Caddyfile.default.bak, and makes Caddy resume its routes after a restart (see Caddy restarts and reboots). An existing Caddy with its own Caddyfile is left as it is;
  4. downloads the Windlass binary, checks it against the release’s checksums.txt, and installs it;
  5. creates the windlass system user and /var/lib/windlass/{projects,data,backups};
  6. installs windlass-docker-proxy.service on loopback port 2375, without giving the Windlass user direct socket or docker-group access, then the hardened windlass unit, and starts both services.

The installer only prompts when it would install Docker. Under curl | sudo sh it asks on your terminal; with no terminal at all, it treats the answer as no. To answer yes up front when piping:

Terminal window
curl -fsSL https://get.windlass.run | sudo sh -s -- --yes

Supported flags are --yes, --version v0.61 (any release tag), --no-caddy, --no-docker, --binary PATH (local/CI installation), and --caddy-resume, which does only the Caddy resume step and exits.

The install command pipes a script from the internet into sudo sh, so it is reasonable to want to look first. The script is short and plain:

Terminal window
curl -fsSL https://get.windlass.run -o install.sh
less install.sh
sudo sh install.sh

Every release is also signed with GitHub build provenance, which ties those exact bytes to the workflow and commit that produced them. This is worth more than the published checksums on their own: checksums.txt ships in the same release as the binaries, so anyone able to rewrite one could rewrite the other. The attestation is stored outside the release, where a release write cannot reach it.

To check a binary before installing it:

Terminal window
gh release download v0.61 --repo Sulaiman-Dauda/windlass --pattern 'windlass-linux-amd64'
gh attestation verify windlass-linux-amd64 --repo Sulaiman-Dauda/windlass

And the container image. Its attestation is recorded against the image digest, so gh looks up the digest latest points to now and verifies that:

Terminal window
gh attestation verify oci://ghcr.io/sulaiman-dauda/windlass:latest \
--repo Sulaiman-Dauda/windlass

Verification is silent on success and exits 0, so check the exit code rather than looking for output. A binary that has been altered by even one byte fails with a lookup error for its digest.

The default service listens on port 8080. Claim it using the one-time token printed in the journal:

Terminal window
sudo journalctl -u windlass | grep setup_token

Open http://<server-ip>:8080 temporarily, or use an SSH tunnel when port 8080 is firewalled. The setup page’s Check this server button, with the token, reads Docker, Compose, Caddy, ports 80 and 443 and free disk before you claim the instance, and changes nothing. After claiming, the same checks are GET /api/v1/system/preflight for an admin. After signing in:

  1. create a DNS A/AAAA record such as windlass.example.com pointing at the server;
  2. open Settings, General, Panel domain;
  3. enter the hostname without https:// and save.

Windlass creates the targeted Caddy object windlass_panel_route and adds the hostname to Caddy certificate automation. It does not modify the Caddyfile or unrelated routes. Removing the setting deletes only that route. DNS must already resolve to the server and ports 80/443 must reach Caddy.

Windlass adds its routes through the Caddy admin API. Caddy saves every change to its autosave file, but by default it starts from /etc/caddy/Caddyfile, so a Caddy restart drops every route until Windlass puts them back. When the Caddyfile is the admin-only one the installer wrote, the installer adds a systemd drop-in, /etc/systemd/system/caddy.service.d/windlass-resume.conf, that starts Caddy with --resume and makes systemctl reload caddy do nothing.

  • Caddy restarts on its own: every domain keeps serving, with or without Windlass running.
  • The server reboots: Caddy starts from the routes it had, but Docker can give containers new addresses, so a domain can fail or answer from the wrong container until Windlass starts and syncs its routes, normally within seconds of boot.

Servers installed before v0.63 that update from the panel never rerun the installer. Needs you shows “A Caddy restart takes your domains offline” with the command to run once:

Terminal window
curl -fsSL https://get.windlass.run | sudo sh -s -- --caddy-resume

A Caddy with its own Caddyfile is left alone, because resuming would ignore later edits to that file. Windlass still puts its routes back as soon as it sees them gone. The same holds the other way: while the drop-in exists, Caddy ignores edits to the Caddyfile, and if the file stops being the admin-only one, Needs you says so with the undo command. To undo the drop-in:

Terminal window
sudo rm /etc/systemd/system/caddy.service.d/windlass-resume.conf
sudo systemctl daemon-reload
sudo systemctl restart caddy

The installer never changes a firewall. When it finds ufw or firewalld active, it says which ports look closed. If 8080 is closed it prints an SSH tunnel in place of the address:

Terminal window
ssh -L 8080:127.0.0.1:8080 <user>@<server-ip> # then open http://localhost:8080

Domains and HTTPS need ports 80 and 443 open. Some images, such as Vultr’s Ubuntu, ship with ufw active and only port 22 open. To open both:

Terminal window
sudo ufw allow 80/tcp && sudo ufw allow 443/tcp # ufw
sudo firewall-cmd --permanent --add-service=http --add-service=https && sudo firewall-cmd --reload # firewalld

A cloud provider’s own firewall (security groups, Vultr or Hetzner firewalls) cannot be seen from the server, so the installer cannot warn about it. Open 80 and 443 there too.

After the HTTPS hostname works, firewall public port 8080 or add a systemd override setting WINDLASS_ADDR=127.0.0.1:8080 and restart Windlass.

Variable Purpose
WINDLASS_ADDR Default :8080. Windlass HTTP listen address.
WINDLASS_DATA Default /var/lib/windlass. Platform database, keys and plugins, and by default projects and backups.
WINDLASS_PROJECTS Default $WINDLASS_DATA/projects. Authoritative Compose project directories.
WINDLASS_LOG_LEVEL Default info. One of debug, info, warn or error.
WINDLASS_CADDY_ADMIN Default http://127.0.0.1:2019. Caddy admin API used for targeted route updates.
WINDLASS_PANEL_UPSTREAM Default 127.0.0.1:8080. Address Caddy dials for the Settings-managed panel route.
WINDLASS_TRUSTED_PROXIES Default 127.0.0.0/8,::1/128. Proxy IPs/CIDRs allowed to supply the client address and X-Forwarded-Proto.
WINDLASS_NO_SELF_UPDATE Unset by default. Disable binary self-update when set.
WINDLASS_UPDATE_REPO Default Sulaiman-Dauda/windlass. Repository checked for releases.
WINDLASS_UPDATE_TOKEN Unset by default. GitHub token for a private update repository. From v0.64 the panel shows releases from one but refuses to install them.
DOCKER_HOST Defaults to the Docker client’s default. The installer sets tcp://127.0.0.1:2375 in systemd.

Configuration explains each one.

The Caddy admin API and Docker proxy must not be exposed publicly.

Terminal window
curl -fsSLO https://raw.githubusercontent.com/Sulaiman-Dauda/windlass/main/install/docker-compose.install.yaml
docker compose -f docker-compose.install.yaml up -d

This starts Windlass and the restricted socket proxy. Read the setup token from the container’s log:

Terminal window
docker compose -f docker-compose.install.yaml logs windlass | grep setup_token

It does not bundle Caddy. Application domains and the panel-domain setting remain unavailable until Windlass can reach an existing Caddy admin API. Set WINDLASS_CADDY_ADMIN and WINDLASS_PANEL_UPSTREAM to addresses valid from the Caddy/Windlass networks.

Caddy’s requests do not arrive from loopback in this layout, so Windlass treats every request as plain HTTP until told otherwise: sign-in cookies are not marked Secure, and OAuth callback, GitHub App and webhook URLs are built with http://. Set WINDLASS_TRUSTED_PROXIES to the one address Caddy’s requests arrive from, as the Windlass container sees it. Windlass logs a warning that names it the first time Caddy forwards a request.

Trust a single address, never a whole Docker network: every container on a trusted network can claim any client address and claim HTTPS. If that address is the network’s gateway, also stop anything but Caddy reaching port 8080, for example by publishing it as 127.0.0.1:8080:8080. Rootless Docker, Podman and Docker Desktop can deliver all published-port traffic from the gateway, so trusting it there trusts every client.

The example uses a named volume. Replace it with a host bind mount when SSH editing and filesystem-based recovery are required:

volumes:
- /var/lib/windlass:/var/lib/windlass

Container installs set WINDLASS_NO_SELF_UPDATE; update them by pulling a new image and recreating the Windlass container.

Terminal window
wget https://github.com/Sulaiman-Dauda/windlass/releases/latest/download/windlass-linux-amd64
chmod +x windlass-linux-amd64
sudo WINDLASS_DATA=/var/lib/windlass ./windlass-linux-amd64

A bare process needs equivalent filesystem permissions, Docker connectivity, Caddy access, and process supervision. The systemd installer is safer for normal servers.

The Update now button under Settings, System is offered only on Linux binary installations with self-update enabled. It downloads the release binary and checksums.txt, refuses the update unless the SHA-256 matches and GitHub’s build provenance for that binary verifies (what is checked), and restarts. The hardened systemd unit cannot write /usr/local/bin, so the panel stages the binary in its data directory and the unit’s start hook swaps it in, keeping the old one as /usr/local/bin/windlass.previous. Application containers are not restarted.

The panel offers only a newer release: versions compare part by part as numbers, so v0.100 follows v0.99, and a build without a release version (dev) is never offered one. The hook installs the new binary owned by root and removes the staged file, so the windlass user cannot rewrite the program it runs. The hook in installs before v0.63 moved the staged file as it was, which left the binary owned by windlass. Needs you shows that from the file’s owner, with the command that fixes it: rerunning the installer (curl -fsSL https://get.windlass.run | sudo sh) reinstalls the latest release owned by root, writes the new hook, and removes the older windlass.service.d/self-update.conf drop-in if the server has one. It also makes an older windlass.previous root-owned, so a rollback never puts back a file the windlass user could have changed. Deployed apps keep running.

The hook reads the staged file as the windlass user, so a link placed there cannot make root copy a file that user may not read. If the swap fails, for example on a full disk, the panel starts on its current binary and tries the swap again on the next start.

A bare process that can write its own binary’s directory replaces the file directly, so the binary stays owned by that user; Needs you reports it only for /usr/local/bin/windlass.

To go back to the hook before v0.63, edit the ExecStartPre=+ line in /etc/systemd/system/windlass.service to the earlier form and reload:

Terminal window
sudo systemctl daemon-reload && sudo systemctl restart windlass

The earlier line was if [ -x /var/lib/windlass/data/update/windlass.next ]; then cp -a /usr/local/bin/windlass /usr/local/bin/windlass.previous 2>/dev/null || true; mv -f /var/lib/windlass/data/update/windlass.next /usr/local/bin/windlass; fi.

Manual rollback:

Terminal window
sudo mv /usr/local/bin/windlass.previous /usr/local/bin/windlass
sudo systemctl restart windlass
Terminal window
sudo systemctl disable --now windlass
sudo systemctl disable --now windlass-docker-proxy
sudo rm /usr/local/bin/windlass

Do not delete /var/lib/windlass/projects if you want to retain stack files. Existing Docker containers keep running. Caddy keeps serving the last routes Windlass applied; with the resume drop-in it keeps them across restarts too, but nothing updates them, so after a reboot a domain can point at an old container address. Make any route needed permanently without Windlass part of the administrator-owned Caddyfile, and remove the drop-in as shown in Caddy restarts and reboots.

See Life without the panel.