Skip to content
Docs Try Aspire

Secret Properties

Class Properties 4 members
Represents a Secret object in a Docker Compose configuration file.
External Section titled External nullable bool?
Indicates whether the secret is managed externally. If set to true, the secret must already exist, as it will not be created or modified.
public bool? External { get; set; }
File Section titled File nullable string?
Represents the file path associated with the secret. This specifies the location of the file on the host system that will be used as the source for the secret in the container.
public string? File { get; set; }
Labels Section titled Labels Dictionary<string, string>
Gets or sets a collection of key-value pairs representing metadata or additional information associated with the secret. These labels can be used for categorization, identification, or other purposes as determined by the user.
public Dictionary<string, string> Labels { get; set; }
Name Section titled Name nullable string?
Gets or sets the name of the secret in the Docker Compose configuration.
public string? Name { get; set; }