Skip to main content

generate_compose_bundle

Function generate_compose_bundle 

Source
pub fn generate_compose_bundle(
    machine: &MachineConfig,
    services: &[LegacyServiceConfig],
    public_hostname: Option<&str>,
) -> ComposeBundle
Expand description

Generate a ComposeBundle for a machine’s full service set.

services is the union of all declared services across the mirrors the machine hosts. Pass an optional public_hostname (e.g. "pdx.cloud.noisetable.example") to get a domain-named Caddyfile; omit it and Caddy falls back to port-based listeners (useful for staging / when cloud_domain isn’t set yet in mirrors/<camp>.toml).