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