Skip to content

How to set up container-to-container communication? #9982

Answered by Alirexaa
mgasparel asked this question in Q&A
Discussion options

You must be logged in to vote

For container to container communication use resource name as host and container port for port. If the resource name is postgres then the unleash container can connect to postgres container by postgres:5432 host and port.

This is an example that Redis Insight configured to connect to redis by container to container communication:

https://github.com/dotnet/aspire/blob/main/src%2FAspire.Hosting.Redis%2FRedisBuilderExtensions.cs#L242-L248

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@davidfowl
Comment options

Answer selected by mgasparel
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants