pub struct AppSpec {Show 19 fields
pub name: String,
pub project: String,
pub environment: String,
pub source: Source,
pub build: Option<BuildSettings>,
pub env: EnvFile,
pub domains: Vec<Map<String, Value>>,
pub volumes: Vec<String>,
pub ports: Vec<String>,
pub replicas: u32,
pub port: Option<u16>,
pub healthcheck: Option<Value>,
pub resources: Option<Resources>,
pub command: Option<Value>,
pub previews: Option<PreviewSettings>,
pub files: Vec<AppFile>,
pub user: Option<String>,
pub working_dir: Option<String>,
pub secret_on_change: Option<OnChange>,
}Expand description
What a user sets on an app.
Fields§
§name: String§project: String§environment: String§source: Source§build: Option<BuildSettings>§env: EnvFile.env text, or a {KEY: value | {secret: NAME}} map.
domains: Vec<Map<String, Value>>The ingress’ domains: list ({host, path?, port?, https?, redirect?}), passed to the rendered service as is. port
defaults to the app’s port.
volumes: Vec<String>Named volumes, NAME:/path[:ro]. Each is the app’s own
(<stack>_<app>_<name>), shared by its replicas. Host paths are
not allowed.
ports: Vec<String>Published host ports, compose syntax (127.0.0.1:8080:80),
load-balanced over healthy replicas.
replicas: u32§port: Option<u16>The port the app listens on inside its instances.
healthcheck: Option<Value>A compose healthcheck.
resources: Option<Resources>§command: Option<Value>A compose command: argv, or a line split like a shell would.
previews: Option<PreviewSettings>Preview deployments per pull request (git sources).
files: Vec<AppFile>Files in the app’s instances, each an org secret’s value (config files, certificates). Delivered like a stack’s file secrets.
user: Option<String>The user the app runs as; numeric (uid[:gid]) on an OCI image.
working_dir: Option<String>§secret_on_change: Option<OnChange>What a new version of a secret the app uses (in env or files)
does to its replicas: roll (default), restart in place, or
none (files updated, replicas stale until they next start).