-
Is there an existing issue for this?
Describe the bugI want to test SSL in RabbitMQ. I used AddRabbitMQ with an additional call to WithEndpoint. Example: var rabbitMqPassword = builder.AddParameter("RabbitMqPassword");
var rabbitMq = builder.AddRabbitMQ("rabbitmq", password: rabbitMqPassword)
.WithLifetime(ContainerLifetime.Persistent)
.WithBindMount("rabbitmq.conf", "/etc/rabbitmq/rabbitmq.conf")
.WithBindMount("rabbitmq.key", "/etc/rabbitmq/certs/rabbitmq.key")
.WithBindMount("rabbitmq.crt", "/etc/rabbitmq/certs/rabbitmq.crt")
.WithEndpoint(55671, 5671, "tcp", "ssl")
.WithManagementPlugin(); When I run docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
99ef83424195 rabbitmq:4.0-management "docker-entrypoint.s…" 33 seconds ago Up 30 seconds 4369/tcp, 15671/tcp, 15691-15692/tcp, 25672/tcp, 127.0.0.1:64215->5671/tcp, 127.0.0.1:64213->5672/tcp, 127.0.0.1:64214->15672/tcp rabbitmq-55ffd736 here is my AppHost and its references <Project Sdk="Microsoft.NET.Sdk">
<Sdk Name="Aspire.AppHost.Sdk" Version="9.2.1" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<UserSecretsId>6edf371c-0000-0000-0000-f01d1b21109e</UserSecretsId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Aspire.Hosting.AppHost" Version="9.2.1" />
<PackageReference Include="Aspire.Hosting.RabbitMQ" Version="9.2.1" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MyApp\MyApp.csproj" />
</ItemGroup>
</Project> Expected BehaviorTo get the port 55671 defined in WithEndpoint(55671, 5671, "tcp", "ssl") Steps To Reproduce
Exceptions (if any)No response .NET Version info.NET SDK: Runtime Environment: .NET workloads installed: Host: .NET SDKs installed: .NET runtimes installed: Other architectures found: Environment variables: global.json file: Learn more: Download .NET: Anything else?Microsoft Visual Studio Community 2022 Installed Version: Community Visual C++ 2022 00482-90000-00000-AA474 ASP.NET and Web Tools 17.13.124.35287 Azure App Service Tools v3.0.0 17.13.124.35287 Azure Functions and Web Jobs Tools 17.13.124.35287 C# Tools 4.13.0-3.25112.7+afe5bc4a827030229ab79ec596b3cb91d4e87872 Common Azure Tools 1.10 DependencyGraph 2023.3.0.3 GitHub Copilot 17.13.433.20974 Microsoft JVM Debugger 1.0 NuGet Package Manager 6.13.2 Razor (ASP.NET Core) 17.13.3.2511303+2405f884fd9c848997c6be0607b18b55544f526a SQL Server Data Tools 17.13.3.1 Test Adapter for Boost.Test 1.0 Test Adapter for Google Test 1.0 TypeScript Tools 17.0.31211.2001 Visual Basic Tools 4.13.0-3.25112.7+afe5bc4a827030229ab79ec596b3cb91d4e87872 Visual F# Tools 17.13.0-beta.25056.5+63a09289745da5c256e7baf5f4194a750b1ec878 Visual Studio IntelliCode 2.2 WiX Toolset Visual Studio Extension 1.0.0.22 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Read https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/networking-overview to see how networking works in aspire |
Beta Was this translation helpful? Give feedback.
Read https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/networking-overview to see how networking works in aspire