seawall stack

Stacks, run by Portainer or Compose.

Usage

seawall stack [OPTIONS] <COMMAND>

Commands

CommandDescription
lsEvery stack with its state, containers up, drift and pending updates
showOne stack in detail: containers, state, CPU, memory, network and disk (now and over time)
diffDiff the disk compose against what is deployed
saveSave the deployed compose file to its folder in paths.backups (the file only; data is db backup)
deployDeploy the disk compose, keeping the stack's env (backs up first)
updateMove a stack's images to newer versions found by the update check, then deploy
lintCheck compose files against the hardening baseline
editEdit a stack's compose file in $EDITOR, then see what a deploy of it would do
envA stack's env by name, never by value; set or remove one, then deploy what runs now
secretsEnv var names set in Portainer vs used by the compose file (never values)
reconcileMake the disk copy and the deployed compose match again, one side winning
hardenLock a stack's containers down: capabilities, privileges, admin ports
limitsSet a stack's resource limits: memory, CPU, processes, open files
isolateTake a database off the ingress network, onto the stack's own (dry run until --yes)
pinPin each image on a moving tag to the version that runs now (writes the disk copy)
run-asMove a running stack onto its own user, seawall-<stack> (dry run until --yes)
rollbackRedeploy the newest backup that differs from what is deployed (or --to FILE or STAMP)
newSet up a new stack from its folder under paths.stacks: lint, create, allowlist, map, capture
createCreate a new stack in Portainer from a compose file (prefer stack new)
migrateMove a running stack between Portainer and Compose, keeping its volumes
removeRemove a stack: through its manager, then its networks, ports and routes (severe)
renameGive a running stack a new name, copying its volumes to the new name's (severe)
runtimeMove a running stack to the rootless owner's runtime, with its data
findEvery stack on this host and where it lives
exposePut a web app that publishes host ports behind the proxy
moveMove a stack that lives elsewhere into the stacks folder
stopStop a stack (silences its container alerts first)
startStart a stopped stack
logsRecent logs from a stack's containers