Skip to main content
The high-level CLI commands cover normal operation. Use towbar compose and towbar exec when troubleshooting requires a Docker Compose operation that Towbar does not wrap directly.
These commands can stop services, remove containers, or delete control-plane data when given destructive Docker Compose arguments. Review the exact command before running it. Never use global docker system prune or docker volume prune as a Towbar maintenance step.

towbar compose

Run a Docker Compose command against the active Towbar release with its project name, environment file, immutable service images, and source commit already supplied.
Syntax
The CLI requires at least one Compose subcommand. Refer to the Docker Compose command reference for the options accepted after COMMAND. Use the higher-level alternatives when possible:

towbar exec

Run one command in a running Towbar service container.
Syntax
Check PostgreSQL readiness
Inspect the API process environment keys
towbar exec does not start a stopped service and does not select a replica. The service must already be running. Avoid commands that print secret values or mutate the database outside a documented recovery procedure.

Service names

The Compose project defines these service identifiers:
Local installations run gateway; public HTTPS installations run gateway-public. migrate, temporal-schema, and temporal-namespace are one-time jobs and normally are not available for towbar exec after startup.

Recovery boundaries

towbar compose down --volumes permanently deletes the control-plane PostgreSQL volume, including Towbar state and Temporal history. It does not delete application or resource volumes on deployment servers. Follow the uninstall guide and verify a database backup plus the matching TOWBAR_CREDENTIALS_KEY before using it. Container changes made through towbar exec are ephemeral and disappear when the service is recreated. Put lasting configuration in /etc/towbar/towbar.env, validate it, and apply it with towbar restart.
Last modified on September 22, 2026