pub struct AppTemplate {Show 17 fields
pub name: String,
pub image: String,
pub env: BTreeMap<String, String>,
pub port: Option<u16>,
pub domains: Vec<Map<String, Value>>,
pub volumes: Vec<String>,
pub ports: Vec<String>,
pub replicas: Option<u32>,
pub command: Option<Value>,
pub args: Option<Value>,
pub healthcheck: Option<Value>,
pub resources: Option<Resources>,
pub files: Vec<FileTemplate>,
pub user: Option<String>,
pub working_dir: Option<String>,
pub secret_on_change: Option<OnChange>,
pub depends_on: Vec<String>,
}Expand description
One app of a template: the fields of an AppSpec with an image
source, as strings that may use ${var} and ${host:KEY}.
Fields§
§name: StringThe key: [a-z0-9-]; the app is <instance>-<key>.
image: StringAn isb image reference (docker:louislam/uptime-kuma:1).
env: BTreeMap<String, String>§port: Option<u16>§domains: Vec<Map<String, Value>>{host, path?, port?, https?, strip_prefix?, ...} as the ingress
takes them.
volumes: Vec<String>Named volumes, NAME:/path[:ro].
ports: Vec<String>Published host ports (compose syntax).
replicas: Option<u32>§command: Option<Value>The whole command line (replaces the image’s entrypoint too, as
isb’s command does): argv, or a line split like a shell would.
args: Option<Value>Arguments after the image’s own entrypoint (docker’s command):
the entrypoint is read from the image when the template is deployed.
healthcheck: Option<Value>§resources: Option<Resources>§files: Vec<FileTemplate>§user: Option<String>§working_dir: Option<String>§secret_on_change: Option<OnChange>What a new version of one of the app’s secrets (its generated ones,
its files) does to its replicas: the app’s secret_on_change.
depends_on: Vec<String>Apps deployed (and converged) before this one.