Skip to content

Life without the panel

Windlass is deliberately removable from the application runtime path. Docker keeps containers running and Caddy keeps its active configuration when the Windlass process stops.

/var/lib/windlass/
├── projects/<name>/
│ ├── compose.yaml # authoritative Compose configuration
│ ├── .env # authoritative dotenv values, mode 0600
│ ├── .windlass.json # Git/source/domain metadata used for index rebuilds
│ └── ... # source and application files
├── data/
│ ├── windlass.db # platform state and rebuildable indexes/caches
│ ├── secret.key # encryption key, mode 0600
│ ├── session.key # session-signing key, mode 0600
│ └── windlass.lock # held while Windlass runs
├── backups/ # local project archives
└── plugins/ # optional plugin directories
Terminal window
cd /var/lib/windlass/projects/myapp
sudo docker compose -p myapp config
sudo docker compose -p myapp ps
sudo docker compose -p myapp logs -f web
sudo docker compose -p myapp up -d --remove-orphans
sudo docker compose -p myapp down

These are the same files and Compose project name Windlass uses. A hand edit is visible in the Files/Environment screens on their next read, and the next deployment uses it directly. A manual docker compose up -d updates containers immediately; Windlass reads live container state rather than overwriting the file from SQLite on the next deployment.

A project that pulls from a private registry needs the host authenticated, or docker compose pull fails with unauthorized whether or not Windlass is running.

Windlass applies stored registry credentials with a real docker login, at startup and again before every pull, so the credential lives in a Docker config file on the host rather than inside the panel. That is deliberate: holding it only in Windlass would make the panel required to start your applications, which is the one thing it promises not to be.

Set one in Settings, Registries, or by hand without the panel:

Terminal window
echo "$TOKEN" | sudo docker login ghcr.io --username <user> --password-stdin

The two land in different files. Windlass runs docker login as the windlass user, so its credentials are in /var/lib/windlass/.docker/config.json. sudo docker login writes root’s, /root/.docker/config.json. Removing Windlass leaves both behind. To use the panel’s credentials as root, point Docker at its config with DOCKER_CONFIG=/var/lib/windlass/.docker, as below.

With the panel stopped, a project must still pull and start:

Terminal window
sudo systemctl stop windlass
cd /var/lib/windlass/projects/myapp
sudo DOCKER_CONFIG=/var/lib/windlass/.docker docker compose -p myapp pull
sudo docker compose -p myapp up -d
sudo systemctl start windlass

If the pull fails with unauthorized, Windlass has no credential for that registry and no deployment will succeed either. A credential added with sudo docker login is in root’s config instead, so drop DOCKER_CONFIG=... to test that one.

If windlass.db is replaced with a new database, claim the instance again with the setup token from the log and choose Scan directory on the Projects page. Windlass discovers directories containing compose.yaml or compose.yml, reads .windlass.json, imports .env, and rebuilds project/domain indexes. Running containers are unaffected throughout.

The following are platform state and cannot be reconstructed from project files: users, sessions, API tokens, audit history, deployment/event history, jobs, backup records/schedules, settings, plugin enablement, and encrypted Git, registry, S3 and OAuth credentials. Back up the complete data directory when those records matter.

Windlass-owned objects can be inspected through the loopback Caddy admin API:

Terminal window
curl http://127.0.0.1:2019/id/windlass_routes
curl http://127.0.0.1:2019/id/windlass_panel_route

Application routes and the panel route remain in Caddy’s active in-memory configuration when Windlass stops. A Caddy reload or restart loads the administrator’s own config file, which drops them. While Windlass runs it checks for its routes every 30 seconds and puts them back, so a reload costs at most that long. If Caddy restarts while Windlass is stopped, the sites it routes are offline until Windlass starts again, unless Caddy runs with the installer’s resume drop-in, which keeps them. If Windlass has been permanently removed, remove that drop-in first (see Caddy restarts and reboots), because while it exists Caddy ignores edits to the Caddyfile; then add any routes that must survive Caddy restarts to the Caddyfile.

To remove only Windlass-owned routes manually:

Terminal window
curl -X DELETE http://127.0.0.1:2019/id/windlass_routes
curl -X DELETE http://127.0.0.1:2019/id/windlass_panel_route

Unrelated Caddy objects are not touched.

Compose requires .env values in plaintext on disk, protected by filesystem ownership and mode 0600. The encrypted SQLite environment copy is a cache, not the source of truth. Git, registry, OAuth, TOTP, and S3 credentials remain encrypted platform state and need secret.key for recovery.

Local backups are ordinary archives under /var/lib/windlass/backups. Restore through the UI, or inspect/extract one with standard archive tools. Windlass attempts a native SQL dump for any project with a PostgreSQL, MySQL or MariaDB container, recognised by service or image name, before archiving; failure of that best-effort dump does not prevent the filesystem archive.

An archive ending in .tar.gz.age is encrypted with age. Decrypt it to a file with the matching secret key, extract it only if age succeeds, then delete the decrypted copy:

Terminal window
age -d -i windlass-backups.key -o backup.tar.gz shop-20261130-020000-abc.tar.gz.age &&
tar -xzf backup.tar.gz -C restore/
rm -f backup.tar.gz

Do not pipe age -d straight into tar. age checks the archive piece by piece and exits with an error at the first piece that was changed, so a pipe can extract files from a tampered archive before the error. With -o and &&, nothing is extracted unless the whole archive checked out. A failed age can leave part of backup.tar.gz behind, which is why the rm runs either way.

age is a single binary from https://age-encryption.org, or your package manager. Without the secret key the archive cannot be opened.