Aspire.Hosting.Docker
Official
📦 Aspire.Hosting.Dockerv13.4.016Functions
14Types
14 types and 204 members
Types
handle
CapturedEnvironmentVariable6 membershandle
ComposeFile21 membershandle
Config10 membershandle
ConfigReference10 membershandle
DockerComposeAspireDashboardResource4 membershandle
DockerComposeEnvironmentResource10 membershandle
DockerComposeServiceResource1 membershandle
Network16 membershandle
Secret8 membershandle
SecretReference10 membershandle
Service97 membershandle
ServiceDependency2 membershandle
Ulimit4 membershandle
Volume18 membersFunctions
method
addConfigAdds a top-level config definition to the Docker Compose file.
addConfig(name: string, file?: string, content?: string, external?: boolean, configure?: (obj: Config) => Promise<void>): ComposeFilemethod
addDockerComposeEnvironmentbuilderAdds a Docker Compose environment to the application model.
addDockerComposeEnvironment(name: string): DockerComposeEnvironmentResourcemethod
addNetworkAdds a top-level network definition to the Docker Compose file.
addNetwork(name: string, driver?: string, external?: boolean, configure?: (obj: Network) => Promise<void>): ComposeFilemethod
addSecretAdds a top-level secret definition to the Docker Compose file.
addSecret(name: string, file?: string, external?: boolean, configure?: (obj: Secret) => Promise<void>): ComposeFilemethod
addServiceAdds a service definition to the Docker Compose file.
addService(name: string, image?: string, configure?: (obj: Service) => Promise<void>): ComposeFilemethod
addVolumeAdds a top-level volume definition to the Docker Compose file.
addVolume(name: string, driver?: string, external?: boolean, configure?: (obj: Volume) => Promise<void>): ComposeFilemethod
addVolumeAdds a volume mount to a generated Docker Compose service.
addVolume(source: string, target: string, type?: string, isReadOnly?: boolean, configure?: (obj: Volume) => Promise<void>): Servicemethod
asEnvironmentPlaceholderCreates a Docker Compose environment variable placeholder from a parameter builder
asEnvironmentPlaceholder(dockerComposeService: DockerComposeServiceResource): stringmethod
configureComposeFilebuilderConfigures the Docker Compose file for the environment resource.
configureComposeFile(configure: (obj: ComposeFile) => Promise<void>): DockerComposeEnvironmentResourcemethod
configureDashboardbuilderConfigures the dashboard properties for this Docker Compose environment.
configureDashboard(configure: (obj: DockerComposeAspireDashboardResource) => Promise<void>): DockerComposeEnvironmentResourcemethod
configureEnvFilebuilderConfigures the captured environment variables for the Docker Compose environment before they are written to the .env file.
configureEnvFile(configure: (obj: Dict<string,Aspire.Hosting.Docker/Aspire.Hosting.Docker.CapturedEnvironmentVariable>) => Promise<void>): DockerComposeEnvironmentResourcemethod
publishAsDockerComposeServicebuilderPublishes the specified resource as a Docker Compose service.
publishAsDockerComposeService(configure: (arg1: DockerComposeServiceResource, arg2: Service) => Promise<void>): IComputeResourcemethod
withDashboardbuilderEnables the Aspire dashboard for telemetry visualization in this Docker Compose environment.
withDashboard(enabled?: boolean): DockerComposeEnvironmentResourcemethod
withForwardedHeadersbuilderConfigures whether forwarded headers processing is enabled for the Aspire dashboard container.
withForwardedHeaders(enabled?: boolean): DockerComposeAspireDashboardResourcemethod
withHostPortbuilderConfigures the port used to access the Aspire Dashboard from a browser.
withHostPort(port?: number): DockerComposeAspireDashboardResourcemethod
withPropertiesbuilderAllows setting the properties of a Docker Compose environment resource.
withProperties(configure: (obj: DockerComposeEnvironmentResource) => Promise<void>): DockerComposeEnvironmentResource