Skip to content
DocsTry Aspire
DocsTry

Secret Properties

ClassProperties4 members
Represents a Secret object in a Docker Compose configuration file.
ExternalSection titled Externalnullablebool?
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; }
FileSection titled Filenullablestring?
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; }
LabelsSection titled LabelsDictionary<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; }
NameSection titled Namenullablestring?
Gets or sets the name of the secret in the Docker Compose configuration.
public string? Name { get; set; }