seawall stack
Stacks, run by Portainer or Compose.
Usage
seawall stack [OPTIONS] <COMMAND>
Commands
| Command | Description |
|---|---|
ls | Every stack with its state, containers up, drift and pending updates |
show | One stack in detail: containers, state, CPU, memory, network and disk (now and over time) |
diff | Diff the disk compose against what is deployed |
save | Save the deployed compose file to its folder in paths.backups (the file only; data is db backup) |
deploy | Deploy the disk compose, keeping the stack's env (backs up first) |
update | Move a stack's images to newer versions found by the update check, then deploy |
lint | Check compose files against the hardening baseline |
edit | Edit a stack's compose file in $EDITOR, then see what a deploy of it would do |
env | A stack's env by name, never by value; set or remove one, then deploy what runs now |
secrets | Env var names set in Portainer vs used by the compose file (never values) |
reconcile | Make the disk copy and the deployed compose match again, one side winning |
harden | Lock a stack's containers down: capabilities, privileges, admin ports |
limits | Set a stack's resource limits: memory, CPU, processes, open files |
isolate | Take a database off the ingress network, onto the stack's own (dry run until --yes) |
pin | Pin each image on a moving tag to the version that runs now (writes the disk copy) |
run-as | Move a running stack onto its own user, seawall-<stack> (dry run until --yes) |
rollback | Redeploy the newest backup that differs from what is deployed (or --to FILE or STAMP) |
new | Set up a new stack from its folder under paths.stacks: lint, create, allowlist, map, capture |
create | Create a new stack in Portainer from a compose file (prefer stack new) |
migrate | Move a running stack between Portainer and Compose, keeping its volumes |
remove | Remove a stack: through its manager, then its networks, ports and routes (severe) |
rename | Give a running stack a new name, copying its volumes to the new name's (severe) |
runtime | Move a running stack to the rootless owner's runtime, with its data |
find | Every stack on this host and where it lives |
expose | Put a web app that publishes host ports behind the proxy |
move | Move a stack that lives elsewhere into the stacks folder |
stop | Stop a stack (silences its container alerts first) |
start | Start a stopped stack |
logs | Recent logs from a stack's containers |