Skip to content
Docs Try Aspire
Docs Try

addSecret

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

Signature

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

Applies to

This method applies to the following types: