Skip to content

Run in containers Since v0.2 ​

You can run one node from two images and deploy/compose/compose.yaml instead of a package. Applications, modes and events work exactly as on a package install. The images are waap (control plane or inspection service, chosen by the command) and waap-envoy (the pinned Envoy). Both run as the non-root user 10001 with a read-only root file system, a small tmpfs for /tmp, no capabilities and no-new-privileges. Labels carry the version, the commit and the SHA-256 of the SBOM.

Before you begin ​

  • A container engine with a compose command (docker compose or nerdctl compose).
  • The two images, built with make images or loaded from your registry.
  • Role: someone who can run the engine on the host.

Start a node ​

sh
cd deploy/compose && docker compose up -d
docker compose exec control waap setup

setup creates the first administrator and prints the password once. Admin commands run inside the control container (docker compose exec control waap ...); WAAP_RUNTIME_DIR is already /run/waap there. To protect a site, add an application and its server pool as described in Add your first application and watch the events in detect mode.

How the compose file runs the node ​

compose.yaml starts three containers.

ContainerRole
controlManagement API, console, policy store, xDS server.
inspectThe ext_proc service and the protection modules.
envoyThe data plane.

They share two named volumes: state (/var/lib/waap: policy store, events, accounts) and run (/run/waap: the xDS, ext_proc and admin sockets and the Envoy bootstrap). No TCP port is used between the roles.

Settings ​

SettingWhat it doesDefaultAllowed valuesApplies in
WAAP_IMAGE_TAGImage tag to run.0.2.0image tagall
WAAP_HTTP_PORTHost port of the data-plane listener.8080portall
WAAP_MGMT_BINDHost address of the console and management API (port 9443).127.0.0.1IP addressall

Narrow the console when you change the bind address

If you change WAAP_MGMT_BIND, also narrow management.trusted_networks. The starting configuration trusts the private networks for the console, because published connections arrive from the compose network.

The starting configuration is deploy/compose/waap.yaml. It is imported once into an empty state volume. Afterwards, use the console or the waap commands. The listener binds 0.0.0.0:8080 inside the Envoy container.

Keep or delete the data ​

docker compose down keeps the volumes, so bringing the node up again keeps the administrator and the events. docker compose down -v deletes them. To back up the state volume, copy it, or run waap backup in the control container.

down -v deletes everything

It removes the policy store, the events and the accounts together with the volume.

Update the node ​

Every role migrates the store when it starts, and the containers have no upgrade block. Take the pre-upgrade backup with the new image before any role starts on it.

sh
docker compose stop
WAAP_IMAGE_TAG=<new> docker compose run --rm --no-deps control \
  upgrade run -config /etc/waap/waap.yaml -data-dir /var/lib/waap
WAAP_IMAGE_TAG=<new> docker compose up -d

upgrade run refuses unsupported jumps, writes the backup to /var/lib/waap/backups in the state volume, then migrates. If it refuses or the backup fails, start the old images again: the store is unchanged. For the command, see Upgrade and roll back.

Limits ​

  • High availability with containers is not supported in v0.2: the VRRP address needs host networking.
  • A listener port below 1024 needs cap_add: [NET_BIND_SERVICE] on envoy, or a higher container port mapped by compose.
  • The images are not bit-for-bit reproducible, because the base layer is Debian's. The inputs are pinned.
  • Health checks use waap overview (control, inspect) and the Envoy admin socket (envoy).

Troubleshooting ​

The binary stops with an undefined symbol. Cause: the image has an older RE2 than the binary needs (Debian trixie ships RE2 20240702; the binary needs the 2025 interface). Fix: use the images from make images, which install the newer libre2-11 and its dependencies.

The console is not reachable from another host. Cause: it publishes on 127.0.0.1 only. Fix: set WAAP_MGMT_BIND deliberately and narrow management.trusted_networks.