Skip to content
DocsTry Aspire
DocsTry

addSecret

Method
📦 Aspire.Hosting.Docker v13.4.0
interface ComposeFile {
// ... omitted for brevity
addSecret(
name: string,
file?: string,
external?: boolean,
configure?: callback): ComposeFile;
}

Signature

methodaddSecret
Adds a top-level secret definition to the Docker Compose file.
addSecret(name: string, file?: string, external?: boolean, configure?: (obj: Secret) => Promise<void>): ComposeFile
namestring
filestringoptional
externalbooleanoptional
configure(obj: Secret) => Promise<void>optional
ComposeFile

Applies to

This method applies to the following types: