Skip to main content
A Service is one workload declared under .towbar/services/*.service.yml. Its file defines common settings and an environments map; towbar.yml declares which environment names exist. Towbar reads the committed file at the mapped branch and validates the effective configuration before deploying.
.towbar/services/web.service.yml
Register the example IP under Servers and map production to a branch before syncing.

Field map

Put build settings under deployment. The exact accepted shapes and constraints are in the service JSON Schema. Repository sync also checks cross-workload conditions such as server registration and conflicting network aliases.

Common and environment values

Put shared settings at the top level and override allowed fields under an environment. Objects merge recursively, while an environment array replaces the common array. Identity, secret declarations, and preview configuration stay at entity level. A failed sync does not partially replace the last valid Service configuration or its stored secret values.
Last modified on September 27, 2026