Install
Recommended systemd installation
Section titled “Recommended systemd installation”Run on a Linux x86_64 or arm64 server:
curl -fsSL https://get.windlass.run | sudo shThe installer:
- checks for Docker with the Compose v2 plugin, and if Docker is missing asks before
installing it from get.docker.com (
--yesagrees without asking,--no-dockerrefuses); - installs Git with apt, dnf or apk if it is missing;
- installs Caddy, from Caddy’s own repository on apt and dnf or Alpine’s on apk, unless
--no-caddyis 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 on127.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; - downloads the Windlass binary, checks it against the release’s
checksums.txt, and installs it; - creates the
windlasssystem user and/var/lib/windlass/{projects,data,backups}; - installs
windlass-docker-proxy.serviceon loopback port 2375, without giving the Windlass user direct socket ordocker-group access, then the hardenedwindlassunit, 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:
curl -fsSL https://get.windlass.run | sudo sh -s -- --yesSupported 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.
Verifying what you are about to run
Section titled “Verifying what you are about to run”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:
curl -fsSL https://get.windlass.run -o install.shless install.shsudo sh install.shEvery 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:
gh release download v0.61 --repo Sulaiman-Dauda/windlass --pattern 'windlass-linux-amd64'gh attestation verify windlass-linux-amd64 --repo Sulaiman-Dauda/windlassAnd the container image. Its attestation is recorded against the image digest, so gh
looks up the digest latest points to now and verifies that:
gh attestation verify oci://ghcr.io/sulaiman-dauda/windlass:latest \ --repo Sulaiman-Dauda/windlassVerification 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.
First run and panel HTTPS
Section titled “First run and panel HTTPS”The default service listens on port 8080. Claim it using the one-time token printed in the journal:
sudo journalctl -u windlass | grep setup_tokenOpen 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:
- create a DNS A/AAAA record such as
windlass.example.compointing at the server; - open Settings, General, Panel domain;
- 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.
Caddy restarts and reboots
Section titled “Caddy restarts and reboots”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:
curl -fsSL https://get.windlass.run | sudo sh -s -- --caddy-resumeA 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:
sudo rm /etc/systemd/system/caddy.service.d/windlass-resume.confsudo systemctl daemon-reloadsudo systemctl restart caddyFirewalls
Section titled “Firewalls”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:
ssh -L 8080:127.0.0.1:8080 <user>@<server-ip> # then open http://localhost:8080Domains 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:
sudo ufw allow 80/tcp && sudo ufw allow 443/tcp # ufwsudo firewall-cmd --permanent --add-service=http --add-service=https && sudo firewall-cmd --reload # firewalldA 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.
Runtime configuration
Section titled “Runtime configuration”| 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.
Container installation
Section titled “Container installation”curl -fsSLO https://raw.githubusercontent.com/Sulaiman-Dauda/windlass/main/install/docker-compose.install.yamldocker compose -f docker-compose.install.yaml up -dThis starts Windlass and the restricted socket proxy. Read the setup token from the container’s log:
docker compose -f docker-compose.install.yaml logs windlass | grep setup_tokenIt 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/windlassContainer installs set WINDLASS_NO_SELF_UPDATE; update them by pulling a new image and
recreating the Windlass container.
Bare binary
Section titled “Bare binary”wget https://github.com/Sulaiman-Dauda/windlass/releases/latest/download/windlass-linux-amd64chmod +x windlass-linux-amd64sudo WINDLASS_DATA=/var/lib/windlass ./windlass-linux-amd64A bare process needs equivalent filesystem permissions, Docker connectivity, Caddy access, and process supervision. The systemd installer is safer for normal servers.
Updates and rollback
Section titled “Updates and rollback”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:
sudo systemctl daemon-reload && sudo systemctl restart windlassThe 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:
sudo mv /usr/local/bin/windlass.previous /usr/local/bin/windlasssudo systemctl restart windlassUninstall without removing applications
Section titled “Uninstall without removing applications”sudo systemctl disable --now windlasssudo systemctl disable --now windlass-docker-proxysudo rm /usr/local/bin/windlassDo 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.