Skip to content
landfall

landfall

Set up Linux servers and deploy sites to them behind Traefik with automatic HTTPS, from one CLI.

npm i -g landfall
lf setup vps --host 203.0.113.7     # fresh Ubuntu/Debian box → Docker, firewall, Traefik, ssh key
cd my-site && lf deploy -s vps      # live at https://my-site.203-0-113-7.sslip.io
  • Servers are ssh targets. Any ~/.ssh/config alias works. If ssh vps works, lf deploy -s vps works.
  • No agent on the server. Every site is a plain Docker Compose project under /opt/landfall, so you can read, run and fix it by hand.
  • Your compose.yaml is the site. docker compose up runs it locally, lf deploy runs the same file behind HTTPS.
  • Every change is journaled on the server and can be undone with lf undo.
  • The CLI is the product. Every feature is an lf command first, usable from scripts, CI and agents. The web UI (lf ui) is a front end for those commands.

lf is short for landfall. Both commands are installed.

Concepts

termmeaning
serverAn ssh target: a ~/.ssh/config alias, or one landfall registered with lf server add/lf setup. Pass it as -s <name>. The first server you add becomes the default.
siteOne Compose project on a server: your compose.yaml, or one landfall generates for a static folder, a Dockerfile or a prebuilt image. Services with x-landfall: { port } are routed through Traefik.
project file./.landfall.json, written by the first lf deploy: { "name", "server", "domains" }. Commands that take [name] default to this site, and -s defaults to its server.
main domainOptional per-server domain (lf server domain vps example.com). Sites then default to <site>.example.com, and a bare name like shop means shop.example.com. Without one, sites get <site>.<ip-with-dashes>.sslip.io (e.g. blog.203-0-113-7.sslip.io), which resolves without any DNS setup.
releaseEvery deploy creates one, with an id like 20260122143005. The last 5 are kept (--keep n for more). lf rollback switches between them, back and forth.
runOne landfall invocation that changed something on a server. Runs are listed by lf history and reverted by lf undo.

How defaults resolve, for every command:

  • site [name]: the argument, else name from ./.landfall.json.
  • server -s: the flag, else server from ./.landfall.json, else the default server (lf server use).

Where to start

guidecovers
Serverslf setup for fresh and existing servers, setup flags, registering servers, NAS and other systems
Deploy a sitesite kinds, env and secrets, CI, what gets uploaded, environments, main domains
Compose sitesx-landfall, routes, private ports, IP allowlists, volumes, published ports
Day-to-daylogs, env, secrets, domains, logins, tunnels, restart and removal
Volumes and backupsvolumes, backups, scheduled and offsite backups, push and pull data
UpdatesOS packages, images, Docker Compose, vulnerability scans
Traefiklandfall's Traefik, HTTP/3, the dashboard, using your own Traefik
Server administrationfirewall, services, SSH keys, users, swap, hardening
Traffic, certificates and checksrequest stats, certificate state, HTTPS checks
History and undothe server journal and what lf undo can revert
Pluginsfail2ban and Trivy, installing plugins, writing your own commands and web UI sections
Web UIlf ui, its pages and their commands, security model
Scripts, CI and AI agentsnon-interactive use, --json, secrets, exit codes, recipes
Referenceevery command, local and remote files, environment variables
Troubleshootingerror messages and their fixes