-
Hey, I'm updating to Aspire 9.3 to replace my handcrafted docker-compose.yaml with a generated one, Q: how do I configure the publisher to ignore Seq, which is deployed out-of-band? I've excluded it from the manifest, but the publisher still tries to process it. var builder = DistributedApplication.CreateBuilder(args);
builder.AddDockerComposeEnvironment("docker-compose");
var seq = builder.AddSeq("seq")
.WithLifetime(ContainerLifetime.Persistent)
.ExcludeFromManifest();
builder.AddProject<Projects.WebApp>("webapp")
.WithReference(seq)
.PublishAsDockerComposeService((resource, service) =>
{
service.ContainerName = "webapp";
}); I think the publisher still attempts to create a
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You don't want to remove seq in publish mode, you just want to change how it's expressed. var builder = DistributedApplication.CreateBuilder(args);
builder.AddDockerComposeEnvironment("docker-compose");
var seq = builder.ExecutionContext.IsPublishMode
? builder.AddConnectionString("seq")
: builder.AddSeq("seq").WithLifetime(ContainerLifetime.Persistent);
builder.AddProject<Projects.WebApp>("webapp")
.WithReference(seq)
.PublishAsDockerComposeService((resource, service) =>
{
service.ContainerName = "webapp";
}); |
Beta Was this translation helpful? Give feedback.
You don't want to remove seq in publish mode, you just want to change how it's expressed.