DockerComposeServiceExtensions
Classstaticnet10.0
Provides extension methods for customizing Docker Compose service resources.
namespace Aspire.Hosting;
public static class DockerComposeServiceExtensions{ // ...}Methods4
Section titled MethodsAsEnvironmentPlaceholder(IManifestExpressionProvider, DockerComposeServiceResource) extensionats ignoredstring Creates a placeholder for an environment variable in the Docker Compose file.
AsEnvironmentPlaceholder(IResourceBuilder<ParameterResource>, DockerComposeServiceResource) extensionats exportstring Creates a Docker Compose environment variable placeholder for the specified
ApplicationModel.ParameterResource . string Creates a Docker Compose environment variable placeholder for this
ApplicationModel.ParameterResource . PublishAsDockerComposeService(IResourceBuilder<T>, Action<DockerComposeServiceResource, Service>) extensionats exportIResourceBuilder<T> Publishes the specified resource as a Docker Compose service.