seawall init

Set this host up, and seawall with it.

Set this host up, and seawall with it

Docker has to be installed first. init adds log caps, a stack manager (Portainer, or Compose with --manager compose), a reverse proxy, monitoring, logs (Loki and Alloy), CrowdSec, ufw rules and automatic security updates. Each is checked first and left alone when it's there.

On a terminal, a first run asks how stacks run, which reverse proxy to start, who runs it and what to leave out, then shows the plan and asks before it carries it out. The answers are saved in the config. Off a terminal the flags answer instead and --yes carries it out. Then the settings open on what was found.

Usage

seawall init [OPTIONS]

Changes the host

Without --yes it prints the plan and changes nothing.

Options

--yes

Carry out the steps not done yet without asking, then save the settings without the screen

--manager <MANAGER>

What runs the stacks: Portainer, or Compose from each stack's folder with no Portainer (default: portainer on a new host)

One of portainer, compose.

--proxy <PROXY>

The reverse proxy to start when none runs (default: npm)

One of npm, traefik, caddy, none.

--runtime <RUNTIME>

Switch seawall and the docker CLI to this runtime (a docker context). Runs only the runtime step: run init again after it

One of docker, docker-rootless, podman, podman-rootless.

--only <STEP>

Only this step (repeatable)

One of docker, runtime-access, runtime, logs, live-restore, docker-rebind, log-level, userland-proxy, group, network, manager, proxy, monitoring, logging, infra-routes, notifications, crowdsec, crowdsec-api, crowdsec-hub, stacks, run-users, facts, audit, rules, backups, images, firewall, updates, host-upgrade, upgrades, ssh, sudo.

--skip <STEP>

Leave this step out (repeatable). [init] skip in the config does the same for every run

One of docker, runtime-access, runtime, logs, live-restore, docker-rebind, log-level, userland-proxy, group, network, manager, proxy, monitoring, logging, infra-routes, notifications, crowdsec, crowdsec-api, crowdsec-hub, stacks, run-users, facts, audit, rules, backups, images, firewall, updates, host-upgrade, upgrades, ssh, sudo.

--details

Show how each step is done under its line (on a terminal, d at the question does)

--confirm <NAME>

Make this severe change off a terminal, where init can't ask for its name (repeatable)

One of ipv6, host-files, portainer.

--wait

After a redeploy, wait out the 2-minute compare with before. Without it the facts timer runs it (SeawallDeployWorse)

Every command also takes the global options.

Examples

seawall init
seawall init --manager compose
seawall init --only backups --yes