Skip to content

Docker containers and service discovery #5862

Answered by davidfowl
Waste-Treatment asked this question in Q&A
Discussion options

You must be logged in to vote

You need to explicitly reference an endpoint. When you are using a base container, there's no service discovery assumed (it could be a connection string you wanted injected vs service discovery information).

builder.AddProject<ABlazorClient>("client")
.WithReference(containerService.GetEndpoint("http"))
.WithExternalHttpEndpoints();

See this WithReference overload

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Waste-Treatment
Comment options

Answer selected by Waste-Treatment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants